-
Notifications
You must be signed in to change notification settings - Fork 70
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
How to get public_id of the images that I had uploaded to cloudinary? #40
Comments
@hotfuzz123 I think the only way you can do this right now is if you are storing the public_id(which could be the filename) of the uploaded file in your database. Then you can use that to delete the resource from Cloudinary by supplying the So the flow could be something like this (using the example of a user updating their profile picture):
Something along these lines should probably work. |
@dela-dels I can't find the public_id - The error is: "Missing required parameter - public_id". |
@hotfuzz123 I made mention in my previous comment (see below) that you will need to store the
|
Happy to help @hotfuzz123 That said since you have been able to solve your issue, kindly close this issue. All the best. |
For the getPublicId() - i have to upload it and it will get the public_id but i want to get public_id of the old image to delete it and update a new one. How can i do that - can you give me an example??
The text was updated successfully, but these errors were encountered: