Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

Upload to specific folder? #22

Closed fabyeah closed 9 years ago

fabyeah commented 9 years ago

Thank you @Lepozepo for making this package.

Is it possible to upload to a certain folder?

I tried {{#c_upload_stream folder=folder callback="save_url"}} without success.

Lepozepo commented 9 years ago

Sorry, that's not supported right now but I'll look into it when I get a chance.

Lepozepo commented 9 years ago

You can now upload to a specific folder using the Cloudinary.upload(files,ops,callback) function. ops will take in the folder parameter. I'll elaborate in the docs next time I get a chance.

fabyeah commented 9 years ago

Thanks for the update! Uploading to a folder works, but I can't seem to read from it. How to I pass the folder to the url helper? <img src="{{c.url public_id folder='test' format=format width=600 height=200 crop='limit'}}" doesn't seem to work.

fabyeah commented 8 years ago

Ok, so the folder will be part of the public_id. So there is no need to pass 'folder' when retrieving images.