Skip to content

Fix file upload issue#137

Merged
esadakcam merged 1 commit intomainfrom
feature/fix-file-upload
Jul 7, 2025
Merged

Fix file upload issue#137
esadakcam merged 1 commit intomainfrom
feature/fix-file-upload

Conversation

@esadakcam
Copy link
Copy Markdown
Collaborator

No description provided.

@esadakcam esadakcam requested review from Copilot and edkaya July 7, 2025 19:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the direct genai route from the gateway configurations and adds a proxy controller plus necessary beans to forward both multipart and non-multipart requests for file uploads to the GenAI service.

  • Removes genai route from prod and dev YAML configs and reorders user/chat routes in dev
  • Introduces RestTemplate and multipart resolver beans
  • Adds FileUploadProxyController to proxy /genai/** requests to the GenAI service

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
server/api-gw/src/main/resources/application.yaml Removed genai route so /genai/** is now handled by controller
server/api-gw/src/main/resources/application-dev.yml Removed genai route and reordered user/chat routes
server/api-gw/src/main/java/com/continiousdisappointment/apigw/config/RestTemplateConfig.java Added a RestTemplate bean
server/api-gw/src/main/java/com/continiousdisappointment/apigw/config/MultipartConfig.java Configured StandardServletMultipartResolver bean for lazy multipart handling
server/api-gw/src/main/java/com/continiousdisappointment/apigw/config/FileUploadProxyController.java Implements proxy endpoint for /genai/** and forwards files/headers
Comments suppressed due to low confidence (1)

server/api-gw/src/main/java/com/continiousdisappointment/apigw/config/FileUploadProxyController.java:16

  • [nitpick] There are no tests for the new FileUploadProxyController. Consider adding unit and integration tests covering both multipart and non-multipart scenarios to ensure headers, paths, and bodies are forwarded correctly.
@RestController

@esadakcam esadakcam merged commit f5620a8 into main Jul 7, 2025
8 checks passed
@esadakcam esadakcam deleted the feature/fix-file-upload branch July 7, 2025 19:28
@edkaya edkaya mentioned this pull request Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants