Uploads and saves file.