File upload request refactoring