Take a picture and upload it to parse

Hi, is posible to take a picture and upload it to parse?

Can I do a POST HTTP request that have a file like a picture of the camera?

How can I achive this?

Thanks! :slight_smile:

Yes, we are working on a tutorial for this.

but it should work to do something like this (didn’t test it):

    Camera.takePicture(100, 100).then(function(file) {
        var picture = new Parse.Object("Picture");
        picture.set("name", file.name);
        var parseFile = new Parse.File(file.name, file);
        picture.set("file", parseFile);
        return picture.save();
    }).then(function(picture) {
        export.items.add({ name: picture.get('name'), url: picture.get('file').url() });
    }).catch(function(e) {
        console.log("Error: " + e);

Great! Im going to wait for the example! :slight_smile:


One year later and we still waiting for an example on image camera roll/camera upload to server…