mirror of
https://github.com/directus/directus.git
synced 2026-01-23 11:07:56 -05:00
Fixed issue that would cause uploads to the root folder of the file library to fail (#6348)
fixes #6310
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user