Media Library widget to default folder
Hi,
i'm trying to get the Media Library widget to open into a certain folder for a user.
I saw this post:
But then the ML wlll open at the time of page rendering, and I want it to open when I press a button. I tried this:
# hier gaan we de ML maken en toevoegen?
window.ml = cloudinary.createMediaLibrary({
cloud_name: '***',
api_key: '***',
username: '***'
timestamp: moment().unix()
remove_header: true,
max_files: '1',
insert_caption: 'Invoegen',
inline_container: '',
default_transformations: [
[]
],
button_class: 'btnImageInvoegen',
button_caption: ' '
signature: window.strKeyCloudinary
folder: {path: "FOLDERIWANT"}
}},
objBtn
);But that does not change anything... :-(
regards,
Paul
-
Hi Paul,
As you are using signed upload, you may have errors from getting timestamp and signature from a server. Would you try using unsigned upload to verify if it's working?
Thanks,
Mo
0
Post is closed for comments.
Comments
1 comment