Fixed uploading files