repair file upload