affanshahid / multer-storage-cloudinary

A Cloudinary multer storage engine
MIT License
104 stars 18 forks source link

"Unexpected field" error when uploading video/audio #39

Closed diego-rg closed 2 years ago

diego-rg commented 2 years ago

Hi. Does this still work [https://github.com/affanshahid/multer-storage-cloudinary/issues/4] ? I get the error "Unexpected field" every time I try to upload a file that its not a image (mp3, mp4 etc). I changed resource_type: to raw, video and auto but it doesnt work. It only works if I upload an image.

Edit: I found the solution. You have to add ore more param: https://stackoverflow.com/questions/70672530/upload-audio-and-image-from-the-same-form-using-multer-storage-cloudinary/70685793#70685793