Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

Option to add specific fields to local collection #83

Closed nicooprat closed 8 years ago

nicooprat commented 8 years ago

Useful when having multiple file upload on the same page for example, a field can be added to differentiate photo galleries.

Usage example:

Cloudinary.upload(file, { fields: { postId: ..., userId: ... } }, (err, res) => {});


You may need to check my code because I also separated insert & update operations. Seems to work fine on my machine... But perhaps you did this for a specific reason :) Also, I'm not an expert at Coffeescript.

Lepozepo commented 8 years ago

Sweet

nicooprat commented 8 years ago

Thanks! Would you mind bumping the version number & publishing to atmosphere?