Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customPublicId Not Working #9

Open
teddeejordan1984 opened this issue Dec 23, 2021 · 3 comments
Open

customPublicId Not Working #9

teddeejordan1984 opened this issue Dec 23, 2021 · 3 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@teddeejordan1984
Copy link

I have the following const set:

const uuid4 = uuid.v4();

and in the widget I have:

customPublicId={uuid4} use_filename={false}

When the file uploads it's using the filename, not uuid4, as the public ID.

@bubbaspaarx
Copy link
Owner

Sorry for the delay in responding.
Are you signing the uploads when using a custom ID?

@teddeejordan1984
Copy link
Author

No. It's for an unsigned preset.

@bubbaspaarx
Copy link
Owner

bubbaspaarx commented Jan 31, 2022

this could be why. I believe that the customId's only work for signed uploads. I'll double check though as cloudinary's own documentation has a level of interpretation.

Custom public ID to assign to a single uploaded asset. If not specified, either 
a randomly generated string or the original file name is used as the public ID 
according to the unsigned upload preset. To ensure secure usage, overwriting 
previously uploaded assets sharing the same public ID is not supported (unless 
you also include "overwrite = true" in the upload preset).
Default: null.
Example: profile_11002

@bubbaspaarx bubbaspaarx added bug Something isn't working documentation Improvements or additions to documentation labels Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants