Fix uploading files