cloudinary
cloudinary copied to clipboard
How to upload videos?
Just wondering why the script tries to upload videos to "image/upload" instead of "video/upload"? It works if I set the resource_type
manually to video in the npm cloudinary package, but that's not a nice solution.
Just an example, this fails:
utils.js
resource_type = (ref3 = options["resource_type"]) != null ? ref3 : "image";
If I change it to
resource_type = "video"
...everything works fine. But in my case I've videos and images, so this isn't a solution for me.