Fixed issue that would cause uploads to the root folder of the file library to fail (#6348)

fixes #6310
This commit is contained in:
Rijk van Zanten
2021-06-17 11:02:13 -04:00
committed by GitHub
parent a8356302de
commit 6d698d1a7b

View File

@@ -37,6 +37,10 @@ const multipartHandler = asyncHandler(async (req, res, next) => {
let fileCount = 0;
busboy.on('field', (fieldname: keyof File, val) => {
if (val === 'null') val = null;
if (val === 'false') val = false;
if (val === 'true') val = true;
if (fieldname === 'storage') {
disk = val;
}