Xyand
Xyand

Reputation: 4488

Upload files to cloudinary from url via js

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.

Upvotes: 0

Views: 1531

Answers (1)

Tal Lev-Ami
Tal Lev-Ami

Reputation: 1457

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.

Upvotes: 2

Related Questions