Load pictures from gallery

I want upload to server in ios gallery. But i can’t find how to load gallery pictures…

How can i do T^T

I’ve started on this now.


Seems like Fuse.Camera does not contain PictureResult anymore. The API obviously changed. Any ideas how to make it work?

@ben https://www.fusetools.com/docs/fuse/camera/camera

This does not bring up the gallery but the camera instead.

I want the user to select a profile image - the user may want to select a photo which already is on the device.

Any ideas?

So if you’re on the latest version of fuse there is a Fuse.CameraRoll api, put that in your unoproj run uno clean and then in your code this is how you’d use it:

var CameraRoll = require('Fuse/CameraRoll');

CameraRoll.getImage().then(function(image) {
  image; // is the selected image from user, which you can manipulate with ImageTools library as well

Here’s the docs: https://www.fusetools.com/docs/fuse/cameraroll/cameraroll

Thanks! Perfect. Very elegant! I think the documentation really needs some work though! :slight_smile: