Fix uploadFile.