Abhishek saini Abhishek saini - 3 months ago 20
Node.js Question

how to get cloudinary url of uploded video using node js ???

I have uploaded a mp4 file using node.js on my cloudinary account.But I am not able to get its url using public_id ? I have used

cloudinary.video("public_Id")
as mentioned in documentation ,but it is returning me a video tag.I just want to get a video url by its public id. Please help.Thanks .

Answer

You can use the cloudinary.url() method -

cloudinary.url("video.mp4", {resource_type: "video"})

It will generate the URL for accessing the uploaded video.

For more information - https://github.com/cloudinary/cloudinary_npm

Comments