Removed some unused code from the upload task