@cloudinary/url-gen generates wrong url while trying to retrieve images in a folder
-
Hi Kristiyan,
Thanks for reaching out.
The first image is not found because it seems you saved the image with its extension, so the public id for it is actually "2022-04-26T08-43-44.294Z-watch.webp". If you include a
.
character in a public ID, that simply becomes part of the ID itself.If you were to pass "2022-04-26T08-43-44.294Z-watch.webp" to the URL generator then you'd get:
which works but we recommend not to include the extension in the public id for media-related sources so you can just update the asset to not have ".webp" in its public id and your code should work.
I recommend reading the note in this link, please let me know if you have any questions.
Kind Regards,
Thomas
Post is closed for comments.
Comments
1 comment