fixed uploadFile