affanshahid / multer-storage-cloudinary

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

Better API for non 'standard' params #5

Closed affanshahid closed 4 years ago

affanshahid commented 6 years ago

Currently the params object overwrites all settings for the configuration parameters that are set directly i.e: folder, allowedFormats, filename.

There needs to be better handling for this, perhaps the params object should be removed altogether and all extra key-value pairs provided with the configuration object should be evaluated without the type checking that the other params have and be passed on directly to cloudinary.