Merge pull request #5437 from rtainaan/codex/handle-repeated-upload-files

Fix upload crash with repeated file fields
This commit is contained in:
advplyr authored and GitHub committed 2026-10-01 17:52:59 -05:00
commit 5edd20dfa3
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ class MiscController {
return res.sendStatus(400)
}
const files = Object.values(req.files)
const files = Object.values(req.files).flat()
let { title, author, series, folder: folderId, library: libraryId } = req.body
// Validate request body
if (!libraryId || !folderId || typeof libraryId !== 'string' || typeof folderId !== 'string' || !title || typeof title !== 'string') {