Upload to drive not working correctly