mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-28 05:21:35 +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)
|
||||
|
||||
// Skip file upload parsing for internal-api routes (Next.js proxies read multipart bodies).
|
||||
router.use(
|
||||
/^(?!\/internal-api).*/,
|
||||
fileUpload({
|
||||
defCharset: 'utf8',
|
||||
defParamCharset: 'utf8',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue