affanshahid / multer-storage-cloudinary

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

What is the default value and accepted values of options.type value? #7

Closed mahdiarn closed 4 years ago

mahdiarn commented 5 years ago

What is the default value of that options? The documentation said that it was accepting string or function, is it "upload" if it is a string? For the accepted values i assume it was from cloudinary upload API and the accepted value for string type is "Upload", "Rename", "Destroy", "Tags", "Context", "Explicit", "Explode", etc. Is it correct?

affanshahid commented 4 years ago

Yes your assumption is correct. The library doesn't set any defaults itself. All defaults come from the cloudinary API