I want to upload (copy) a file from a known url to Cloudinary from client-side javascript code without using any file upload UI. How can it be done?
I read the docs but just couldn't understand how this can be done.
You can use the following syntax:
$('.cloudinary_fileupload').cloudinary_upload_url(url);
This will initiate an upload request to Cloudinary with the url as instead of a local file.
<input> field? It seems a little awkward$('.cloudinary_fileupload').cloudinary_upload_url(url); produces following error response - {"error":{"message":"Missing required parameter - file"}}. Any thoughts as to what I might be doing wrong? I think I should mention is that I overrode fileupload add method to manually trigger upload by calling data.submit().