fix PhoneGap file upload error