affanshahid / multer-storage-cloudinary

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

Pass aditional prop like "FolderName" #15

Closed joaobibiano closed 4 years ago

joaobibiano commented 4 years ago

Hi,

Im trying to send from the cliente a new parameter like "FolderName" to use it um return in params.

But, on the "file" parameter I only receive fieldname, originalname, encoding and mimeType

Theres is another way to do that?

Thanks

affanshahid commented 4 years ago

This is related to multer the req and file params are forwarded by multer so probably better to ask there. But if you want to access other params in the request you could use the req argument. Let me know if I misunderstood your question.

joaobibiano commented 4 years ago

This is related to multer the req and file params are forwarded by multer so probably better to ask there. But if you want to access other params in the request you could use the req argument. Let me know if I misunderstood your question.

Thanks for the fast answer!

I solved this problem using a parameter on header requisition

I think we can close it