fix uploading file object