Fix some errors
Modify file upload