Add a method to save the uploaded file.