Fix to upload file