Implement upload file.