Why do I get a "public ID too long" error when trying to fetch from a remote URL?

Follow

Comments

2 comments

  • Avatar
    Origami Support

    Would it be possible to use a randomly generated ID instead of relying on the URL? You offer this when using the upload api.

  • Avatar
    Nadav Ofir

    Dynamically specifying public IDs is only available with explicit uploading approaches (i.e. with the upload API), but not with 'fetch' - that's because the URL used to access the image is the same one that tells Cloudinary where to grab it from. You may want to consider switching to upload-mapping (original name is being preserved) or regular uploading (complete flexibility)

Please sign in to leave a comment.