This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Is there any chance to upload a photo from canvas data through javascript?

Comments

1 comment

  • Avatar
    Itay Taragano

    You can upload data-uri image representation (base64 data). For example, with the following image upload tag (in PHP):

    <?php echo cl_image_upload_tag('image_id', array("callback" => $cors_location)); ?>

    Then you can programmatically upload the data-uri (base64) contained in the  img  variable (in jQuery):

    $(".cloudinary-fileupload").cloudinary_upload_url(img);

    Please make sure that you send your content as a Data-URI as explained here:  http://en.wikipedia.org/wiki/Data_URI_scheme.

    0
    Comment actions Permalink

Post is closed for comments.