prepopulate upload widget
I am using multiple single image upload widgets (invoked with $.fn.cloudinary_upload_widget) within a form for which some of the validation occurs server side. If the form fails validation I need to reload it with all fields in their previously submitted state, including the upload widget. I can recreate the input field and thumbnail but without these being attached to the widget events the image cannot be replaced or removed?
Is there any supported way to pre-populate the widget given a public_id and delete token?
Many Thanks
-
Hi David,
Prepopulating the widget isn't supported at the moment, although we plan to allow similar capabilities in the future (interactively selecting images from the media-library or preloading based on public-id).
That said, to allow replacing a previously selected image, you can use the same public-id of the old one and overwrite it.
Would this help solving your case?
Post is closed for comments.
Comments
1 comment