uploadFile fix