L. Dabbeet
L. Dabbeet

Reputation: 320

How to rename the name of 64base image uploaded to Cloudinary

In this code I am uploading 64base image to cloudinary How can I change the name of the uploaded image ?
here is my Nodejs Code:

 router.post('/', (req, res) => {
        cloudinary.v2.uploader.upload(`data:image/png;base64,${req.body.image}`,
            function (error, result) { console.log(result, error); });
    });

Thanks in advance

Upvotes: 0

Views: 350

Answers (1)

Matt Greene
Matt Greene

Reputation: 434

You can add the public_id to the request-https://cloudinary.com/documentation/upload_images#public_id_the_image_identifier

Upvotes: 1

Related Questions