sitechtimes / ai-vs-human-art-backend

0 stars 0 forks source link

cloudinary bulkk upload #21

Closed RichardM1337 closed 1 week ago

whydoesthecodenotwork commented 1 week ago

the upload functions could be merged into one endpoint i think? like if someone wants to upload one file, they could send one file to bulk upload. bulk upload could then use its bulk logic by putting the singular file in an array ([file])

RichardM1337 commented 1 week ago

You could probably just check how many files there are and determine whether or not to use multer single or array -- but in terms of cloudinary yeah best thing you can do is put it into an array and loop it