Is it possible to select multiple images with ai2

184 views
Skip to first unread message

Samx

unread,
Jul 26, 2018, 4:18:36 AM7/26/18
to MIT App Inventor Forum
Hi, 

I am creating an app that allows its user to upload and share images. The problem at this moment is that the user can only upload one image at a time. Is there way to allow them to select multiple images at once?

please note that i'm currently using the image picker and it will only allow me to select one image at a time. 

Thank you

SteveJG

unread,
Jul 26, 2018, 8:08:54 AM7/26/18
to MIT App Inventor Forum
From the documentation  

ImagePicker

A special-purpose button. When the user taps an image picker, the device's image gallery appears, and the user can choose an image. After an image is picked, it is saved, and the Selected property will be the name of the file where the image is stored. In order to not fill up storage, a maximum of 10 images will be stored. Picking more images will delete previous images, in order from oldest to newest.


What you do to make an " app that allows its user to upload and share images" depends where you store them.  I think if you store them to Google Drive you can store one at a time using a loop.  See https://groups.google.com/forum/#!searchin/mitappinventortest/google$20drive$20store$20images%7Csort:date/mitappinventortest/GQliIxzf6Ec/_4VnrnV2AQAJ   

Regards,
Steve

Samx

unread,
Jul 30, 2018, 9:26:22 AM7/30/18
to MIT App Inventor Forum
But how can i modify image picker to allow the user to select multiple image. At the moment it will only allow me to select one image only. 

SteveJG

unread,
Jul 30, 2018, 9:31:39 AM7/30/18
to MIT App Inventor Forum
You can not modify the image picker with Blocks.   To modify the capabilities of the ImagePicker,  either create your own personal version of App Inventor (if you know how to code in Java) or create an extension .

Here is where you would start   http://appinventor.mit.edu/appinventor-sources/  

Samx

unread,
Jul 30, 2018, 10:39:13 AM7/30/18
to MIT App Inventor Forum
I'll look into it. Thanks :)
Reply all
Reply to author
Forward
0 new messages