Handle file upload.