Skip to main content
chazj5409
August 15, 2024
Question

File Upload ForEach Looping

  • August 15, 2024
  • 10 replies
  • 0 views

I want to have users upload files within a foreach - ie like an array of arrays. Think a use case like an apartment/landlord asking for multiple documents for same person ie banking will have multiple documents, ID will have multiple docs, references, etc. But all within the same ForEach in the interface. Each element of the ForEach has a different file upload instance. Thoughts?

10 replies

stefanhelzle0001
Brainy
August 15, 2024

A file upload field can take any number of files. Not sure what you want the foreach for.

konduruc733182
August 15, 2024

So as per my understanding

Your ask : Lets say you have a Land Lord 1(Parent Record - One to many with the Child) who has three tenants (A,B,C - Child Records) who have to upload documents (one-many for the Child)as A :{1,2,3} B:{1,2,3} C:{1,2,3,4}. Is your scenario something like this? and you want to complete the document upload process for all the tenants A,B,C at once?

chazj5409
chazj5409Author
August 15, 2024

Something like this in a single interface that is repeated in a ForEach:

Only for Person A

File upload field for income (multiple files)

File upload field for references (multiple files)

File upload for ID (multiple files)

File upload for vehicle info/parking (multiple files)

stefanhelzle0001
Brainy
August 15, 2024

Sure, this can be done. Do you have any specific question?