i am fighting with this for hours without getting cloudinary to work as expected. I have something like an Airbnb page, where you can upload photos of your flat. I am using the Upload Widget for that (signed Uploads). Works ok. But on the same page where i have my upload widget, i also have the Gallery Widget. So after Uploading the images, i send a "update" request to the gallery widget to re-render, which basically means, that he should get all the images with a certain "tag" in it.
The problem is, that the Gallery Widget and its XHR request to get the images (https://res.cloudinary.com/xxxxxx/image/list/mytag.json) returns an outdated list of resources, meaning, the ones previous in the bucket and not the ones just uploaded. If i wait 20 seconds and refresh the screen, then everything will be displayed.
Of course thats very confusing for potential user because they expect the Gallery to be updated instantly when the upload widget finished work. So does the Gallery Widget requests some kind of CDN which takes some time to reflect the changes? The Media Gallery in the cloudinary web console is not the problem, there i can see all files right after uplading, but the JSON request doesnt reflect what i see in the web console.
Please sign in to leave a comment.