fix uploading files