Start a new topic

File streaming angular

How do get streaming to work for an uploaded image?



when I use the following to access an image I can see in the Kinvey console, I get a 404 error.



scope.streamFile = function(){

var promise = $kinvey.File.stream('image1');

promise.then(function(file) {

var url = file._downloadURL;

});

}


Yes, you’ll need to pass in the *entire* object into the update method. The update method replaces the document identified by `_id` with whatever object you pass in, otherwise you will indeed lose columns.
Thanks, one last thing though, when I upload it now it saves it to the collection but there is no link to downloadURL or anything i can use to embed in my site.



{"_type":"KinveyFile","_id":{"_filename":"web_img.jpg","_id":"533b9c717d245f09031329c3","public":true,"size":126148,"mimeType":"image/jpeg","_acl":{"creator":"53339dba7d245f09030e4b5d"},"_kmd":{"lmt":"2014-06-11T19:33:38.946Z","ect":"2014-06-11T19:33:38.946Z"},"_data":{"webkitRelativePath":"","lastModifiedDate":"2014-05-21T17:00:52.000Z","name":"web_img.jpg","type":"image/jpeg","size":126148}}}
Login or Signup to post a comment