Applied patch for file upload error bug