Improve the process for upload file