mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-07 21:35:26 +02:00
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:
@@ -302,7 +302,9 @@ class Server {
|
|||||||
|
|
||||||
this.server = http.createServer(app)
|
this.server = http.createServer(app)
|
||||||
|
|
||||||
|
// Skip file upload parsing for internal-api routes (Next.js proxies read multipart bodies).
|
||||||
router.use(
|
router.use(
|
||||||
|
/^(?!\/internal-api).*/,
|
||||||
fileUpload({
|
fileUpload({
|
||||||
defCharset: 'utf8',
|
defCharset: 'utf8',
|
||||||
defParamCharset: 'utf8',
|
defParamCharset: 'utf8',
|
||||||
|
|||||||
Reference in New Issue
Block a user