mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-04 00:11:40 +00: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:
commit
2f219ea3cc
1 changed files with 2 additions and 0 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue