How to overwrite a file in cloudinary when it has the same name in nodeJS?
I'm trying to send a file to cloudinary, but if there is a file with that name, replace it. I'm trying everything with the parameters but nothing works, not even sending with the same file name or to a specific folder. I'm using .pdf files.
Code example:
const uploadedResponse = await cloudinary.uploader.upload(file, {
overwrite: true,
use_filename: true,
unique_filename: false,
})
0
-
Hi,
Could you please create a support ticket thru https://support.cloudinary.com/hc/en-us/requests/new and share with us the cloud name and the public id of the files you are trying to replace? You could also share more details about your request, like, if there's any error.
Regards,
Francis0 -
Hi,
done!
0
Post is closed for comments.
Comments
2 comments