fix: url uploads failing

This commit is contained in:
Bobby Wibowo 2022-07-22 04:20:37 +07:00
parent 634347c219
commit aa85d04d34
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -219,7 +219,8 @@ self.upload = async (req, res) => {
req.body = {}
// Initially try to parse as multipart
let hasMultipartField = true
// TODO: Check Request's Content-Type instead of always trying to parse as multipart
let hasMultipartField = false
const unlinkFiles = async files => {
return Promise.all(files.map(async file => {