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])
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
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]
)