rename images throws error
Hi,
we uploaded images to the wrong folder and we are now trying to move them, the UI doesn't support that so we decided to use code
we are getting the following error
"Invalid Signature 9e936d77ba5a7c140c11a4ed1c1bb3a72534c823. String to sign - 'from_public_id=lisbon/neighborhoods/avenida-da-liberdade/properties/gloria1a/10×tamp=1512469938&to_public_id=cities/lisbon/neighborhoods/avenida-da-liberdade/properties/gloria1a/10'."
we are using the following code
cloudinary.v2.uploader.rename(sourcename, newname, function(error, result) {
if (error)
console.log(error)
else
console.log(result)
})
we used this forum topic as a reference https://support.cloudinary.com/hc/en-us/articles/202521002-How-to-move-an-image-from-one-folder-to-another-
we used this forum topic as a reference https://support.cloudinary.com/hc/en-us/articles/202521002-How-to-move-an-image-from-one-folder-to-another-
which is for rails so we found node here https://cloudinary.com/documentation/node_image_upload#rename_images
and it seems your documentation is not align with the code
and it seems your documentation is not align with the code
function rename(from_public_id, to_public_id, options, callback)
exports.rename = function(from_public_id, to_public_id, callback, options) from your node module
options and callback switched places....
in any case we would like help with renaming the images and why we are getting that error
Regards,
Regards,
0
-
Hi Yuri,
Thank you for notifying us about the Node documentation.
Regarding the signature issue, due to security concerns, please contact us at support@cloudinary.com
Best,
Yakir
0
Post is closed for comments.
Comments
1 comment