Uploading image to S3 using phonegap, how to?
问题 I'm trying to get some image onto a S3 but not quite succeeding... Here is my work so far $cordovaCamera.getPicture(options).then(function(imageURI) { // imageURI will be something like: file:///some_path // get the base64 data from the image var img = Utils.encodeImageUri(imageURI); // get the base64 from a new image, not sure if this is needed var image = new Image(); image.src = img; Utils.uploadToS3(image.src); }, function(err) {}) ... // boilerplate function to create a Blob