Merge pull request #5325 from mikiher/file-upload-internal-api

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
+2
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',