Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

How to upload videos? #73

Open dnish opened 8 years ago

dnish commented 8 years ago

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.