mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-02-07 13:59:01 +00:00
fix: url uploads failing
This commit is contained in:
parent
634347c219
commit
aa85d04d34
@ -219,7 +219,8 @@ self.upload = async (req, res) => {
|
|||||||
req.body = {}
|
req.body = {}
|
||||||
|
|
||||||
// Initially try to parse as multipart
|
// 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 => {
|
const unlinkFiles = async files => {
|
||||||
return Promise.all(files.map(async file => {
|
return Promise.all(files.map(async file => {
|
||||||
|
Loading…
Reference in New Issue
Block a user