Added file upload functionality.