Improve file upload