Dependency Injection for File Upload