0

I have been using Cloudinary to upload images via their unsigned API. But a lot of the response text is inaccessible. I primarily need the file addition attached to the uploaded image name i.e.

myImage_xJyk.jpg.

I tried reparsing the json, looping and trying to access the object keys. How can I get the response data from an unsigned upload.

$('.upload_form').append($.cloudinary.unsigned_upload_tag("abcdefg", {
        cloud_name: 'sample',
        api_key: '12345678910'
    },{
        multiple: true,
    })).bind('cloudinaryprogress', function(e, data) { 
        console.log(data.result.public_id);
    });
NicholasByDesign
  • 781
  • 1
  • 11
  • 33

1 Answers1

1

The cloudinaryprogress only is relevant to the process of the upload itself, e.g., for indication of the upload progress. It doesn't know the public ID of the uploaded image yet. You'll need to bind to the cloudinarydone event instead to get the public ID of the upload image.

Itay Taragano
  • 1,901
  • 1
  • 11
  • 12
  • That makes sense, I will try this out tonight when I get home and if it works out I'll be sure to accept the answer. – NicholasByDesign Oct 14 '16 at 19:12
  • You wouldn't happen to have any insight on this question would you? http://stackoverflow.com/questions/40063115/meteor-lepozepo-cloudinary-generate-signature – NicholasByDesign Oct 16 '16 at 21:52