Test uploading a file.