timkelty / craft3-cloudinary

22 stars 8 forks source link

Folder Support #3

Open Taylorsuk opened 5 years ago

Taylorsuk commented 5 years ago

I'm happy to code this and provide a PR, however a pointer in the right direction would be really approached.

How would I be able to upload to a specific folder in Cloudinary?

Many thanks

timkelty commented 5 years ago

@Taylorsuk Sorry I can't be more help, I haphazardly threw this together and haven't revisited since.

See notes about folders here: https://github.com/enl/flysystem-cloudinary#cloudinary-features

If you want to save your files using folder you should set public_ids like 'test/test.jpg' and allow automated folders creation in your account settings in Cloudinary dashboard.

Cloudinary API: https://cloudinary.com/documentation/image_upload_api_reference