fix an issue related to upload file