Trying to upload multiple files to System.FileDocument

1
Hello I have created an entity with type System.FileDocument. I have multile upload fields on my page. I want to upload 4 files with the same button click and work with them. But this entity seems to store only one file at a time. Is there a workaround? I tried using multiple System.FileDocument entities, for each file one. But this leads to errors.   Is there a workaround? Thank you
asked
1 answers
3

Hi,

I recommend adding a Enumeration attribute to your entity, with 4 types, one for each document. 

Before loading the page you can create the four objects each with it's corresponding enumeration item (so you can identify them). 

Then you can use a list view to display all the linked "Document" objects and display what type of document they are and the upload field.

answered