Remove surrounding upload_file code