How to get multiple images from camera and send file to a web api

In this screen, the user views details taken from a web API, the user can enter text in the “Note:” area (indicated with 1 in the attached photo), after entering the text, they can take one or more photos by clicking on “Scatta e Inserisci foto” (indicated with 2 in the photo) and I would like the photo taken to end (perhaps resized and not at maximum resolution) just below the text area with for example a name (1.jpg or 1_ {datetime}. jpg), if the user decides to insert another photo, he will click again on Scatta e Inserisci foto" and the second photo will end up under the previous photo (2.jpg or 2_ {datetime} .jpg), finally if the user clicks on “Salva e Chiudi” you have to make a call to the web component to save the notes first and then a web call for each photo that will send the resized photo to the API server, how could I do all this?

exactly as you describe it… do it step by step… and if you got stuck, post a screenshot of your relevant blocks… also a link to that web API might help us to help you…

A very good way to learn App Inventor or Kodular is to read the free Inventor’s Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Tutorials for MIT App Inventor to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun

1 Like

Hi .
The above tips will help you make your app since you are already a PHP programmer.:+1:

Maybe You will need to create Components dynamically, as the amount of photos may vary

So , is this API yours( in your host , PHP’s Scripts ) ?

Will you send the texts first to an API and then the photos?

:point_down:

And

https://groups.google.com/g/mitappinventortest/c/DvwZO3eDjHs/m/4m5fY9xhHd0J