Upload various image to one entity

Hello guys,
I hate to ask for help for newbie stuff but I've spent the whole day trying to figure this out. I've installed various forge modules and I still couldnt get this right. The video lesson in youtube is outdated "https://www.youtube.com/watch?v=ffOkZtBnWmE", it uses some old widgets that aren't in new outsystems or are different now like the aggregate.

I'm trying to do a way for the end user to upload 6 pictures to an classified before publishing the classified.
Here is an example of what I'm doing:


Those small squares are "image upload" functions. After picking the image it automatically shows it in the small square. And when you click "Save" at the end, it creates a new entity record with the fields of this form and the images associated.

I have the entities and stuff "Classified" and "ClassifiedPhoto". It would be nice to have this squares that automatically show the picture after you upload, but I dont mind having the "Upload image" widget that only shows the filename. I just don't understand what to do in the "Save" action. Is it 6 "Create or Update ClassifiedPhoto" with 6 Local vars of the type ClassifiedPhoto, which I have to create 1 assign (or 6) to assign all the "Filename, ClassifiedID and Photo"  vars?  It doesn't seem the best way, because it will assign even the ones that are empty.

So if anyone could point me out a module or a video or something that could enlighten me in this issue I would really appreciate it.

Thank you. Best Regards.

Swatantra Kumar wrote:

Hi Frederico,

Did you try https://www.outsystems.com/forge/component-overview/200/multiple-file-upload

Also, maybe you would like to see this solution https://www.outsystems.com/forums/discussion/45143/multiple-image-upload/

Hey Swatantra,

Thanks for your reply.

The first component you mentioned is for ZIP, PNG, and PPTX. Doesn't support .Jpg , .jpeg.
The second link you mentioned is a component for IOS / Android. I'm doing a web module.

Any other solution / video / forum I can check?

Regards!

Ah, I didn't notice for web and mobile module.

By the way the multiple file upload component supports most of the file formats. In case any extension is not defined as a valid type in the component, you may easily add it. 

Open the MultipleFileUpload_Extension and add the desired extension in the MimeTypes.cs file.

Regards,

Swatantra

Swatantra Kumar wrote:

Ah, I didn't notice for web and mobile module.

By the way the multiple file upload component supports most of the file formats. In case any extension is not defined as a valid type in the component, you may easily add it. 

Open the MultipleFileUpload_Extension and add the desired extension in the MimeTypes.cs file.

Regards,

Swatantra

Oh really?  Ok let me check that out to see if I can work with it. Tks!