Uploading with the same public id

lukiester
lukiester Member Posts: 2
edited June 2023 in Developer APIs

Hi there.

I am trying to have an image accessible at a certain link: "/upload/public_id" and for that to be overrideable and for the new image to completely replace the old, and be accessible by the same link.

The problem I currently have is that the first image for a certain URL will work as expected but then further replace uploads with only be accessible via /upload/vXYZ/public_id. The first ever uploaded image will still be what loads at the link without the version extension.

This is the upload form:

And the signing function:

Upload preset:

From my googling the only last solution is to version each upload with the same version number but whenever I try that I get an unauthorised error and the upload does not work.

Thank you!

Tagged:

Answers

  • rlux
    rlux Administrator, Cloudinary Staff Posts: 70

    @lukiester -- were you able to get some help on this?

  • lukiester
    lukiester Member Posts: 2

    Hi rlux, yes I did! All sorted thank you.

  • ShowGo_Shane
    ShowGo_Shane Member Posts: 1

    Hello @lukiester, and/or @rlux...

    Thanks for posting. This is a great question and something I've hit so am interested in it as well.

    @lukiester, since you have already included the three screenshots containing your settings - (And, if the solution was to alter those settings in any way) - would you mind giving a short description of the solution along with the edited screenshot?

    This would be so effective and helpful because we could easily look at the difference between the original setup and the updated one(s) to easily identify the changes that were made to ultimately resolve the issue.

    *I apologize if this is a big Ask, but wanted to ask since the post is virtually complete.

    Thanks!

    -Shane