refactor(data sync): Extract file upload logic to AgentFileUploadService from AgentUploadService