give user option to specify folder
I want to give the user an option to specify folder where they can upload images to. I understand that there is property for folder name, how would I go about adding this in my JavaScript?
I am currently using Jquery script to allow users to upload files, here is Codepen of what I am currently using: https://codepen.io/stephangriesel/pen/ZEYXMLz
-
Hi Stephan,
You can specify the folder in the javascript itself, or by passing ` showAdvancedOptions: true` in the upload widget parameters to allow the end-user to specify the `public_id` of the image, which would include the folder path.
Let me know if this makes sense?
1 -
Yup makes sense. Do you have example script for this by any chance?
0 -
Hi Stephan,
Allowing the advanced options on the widget would look like below:
https://codepen.io/idobarnoam/pen/mdyLYVr
This would let your users define a public id which would include the folder path.
Let us know if this works for you.
0 -
The tagging works perfectly for this. Thank you.
0
Post is closed for comments.
Comments
4 comments