Extract file upload methods to FileUploadHandler module.