Merge pull request #5325 from mikiher/file-upload-internal-api
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Build and Push Docker Image / build (push) Has been cancelled
Integration Test / build and test (push) Has been cancelled
Run Unit Tests / Run Unit Tests (push) Has been cancelled

Let next.js handle file uploads through internal-api routes
This commit is contained in:
advplyr 2026-06-25 17:03:34 -05:00 committed by GitHub
commit 2f219ea3cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -302,7 +302,9 @@ class Server {
this.server = http.createServer(app)
// Skip file upload parsing for internal-api routes (Next.js proxies read multipart bodies).
router.use(
/^(?!\/internal-api).*/,
fileUpload({
defCharset: 'utf8',
defParamCharset: 'utf8',