1

I am creating a photo gallery application, and I would like to import all photos from the native gallery of the device in one go. Is there a way to access a list of all the photos? I suppose there must be, since many applications give the option to upload all the photos to the cloud, such as Dropbox.

  • Possible duplicate of [How to select multiple images from gallery in titanium?](https://stackoverflow.com/questions/23932349/how-to-select-multiple-images-from-gallery-in-titanium) – TalkLittle May 27 '17 at 00:21
  • I don't believe it's a duplicate of the above. The above shows how to select multiple photos. The OP is asking how to query all of them, such as what Dropbox or other cloud storage services offer. The two are similar but distinctly different interactions. – Dawson Toth May 29 '17 at 04:56

1 Answers1

0

I don't believe this capability is exposed by Titanium on iOS at the moment. You could show the gallery picker to the user, and let them pick the photos to be uploaded, but that doesn't sound like what you want.

It sounds like you want to use PHPhotoLibrary to query all of the photos, and then possibly make changes to them. You can either use Hyperloop or write a custom module.

On Android, I believe it's device dependent, but some cursory exploration suggests the photos are stored commonly on external storage. You could use the Titanium Filesystem APIs to iterate over and find photos.

Dawson Toth
  • 5,580
  • 2
  • 22
  • 37