Hi,

I'm looking for help to make more than 1 upload file/documents and can download it.

Can anyone tell me the step or give me some example oml ?

Thanks

Hi Ayu Andini,

Basically what you need is to create a Document entity to store file metadata and another entity to store file content, something like DocumentData with its identifier attribute set to Document Identifier.

Than you do your regular uploads using Upload widget and downloads using built-it Download action.

See the attached example.

Hope that helps!

Vitaly Martynenko wrote:

Hi Ayu Andini,

Basically what you need is to create a Document entity to store file metadata and another entity to store file content, something like DocumentData with its identifier attribute set to Document Identifier.

Than you do your regular uploads using Upload widget and downloads using built-it Download action.

See the attached example.

Hope that helps!


Hi Vitaly, Thanks for the reply

I've seen your oml, and I want to upload the multiple files.

Like: I have the form submission, and should upload documents/files can upload more than 1 files/documents

Ayu Andini wrote:

I've seen your oml, and I want to upload the multiple files.

Like: I have the form submission, and should upload documents/files can upload more than 1 files/documents

With multiple uploaded documents logic stays the same, you add more Upload widgets and add more action calls to store those documents to the database. Or just add more columns to Data entity to store more files within the same record, just make sure they are of type Binary Data.

Downloading is also the same, just more actions probably fetching data from different columns or by different id's.

Ayu Andini wrote:

I've seen your oml, and I want to upload the multiple files.

Like: I have the form submission, and should upload documents/files can upload more than 1 files/documents

Here is an updated example. Here you create documents with up to 5 files for each document. You can view documents and download any file attached to it.

Hello Ayu,

Vitaly makes a good suggestion here for using the platform as is.

Additionally, there are a number of plugins on the forge that allow multiple file upload, and provide additional functionality normally required for file upload.

Something I have noticed in the platform is a lack of support for drag and drop in Internet Explorer 11 and Edge browsers, so if they are a requirement for you, be sure to check.

I have been working on a file upload forge component using the FilePond file upload plugin which supports multiple upload and addresses the above issues.

The forge page is here https://www.outsystems.com/forge/component-overview/5543/filepondupload

And the sample page is here https://shkiandra.outsystemscloud.com/FilePondUpload_Sample/

I hope this helps!

Kind regards,

Stuart

Vitaly Martynenko wrote:

Ayu Andini wrote:

I've seen your oml, and I want to upload the multiple files.

Like: I have the form submission, and should upload documents/files can upload more than 1 files/documents

Here is an updated example. Here you create documents with up to 5 files for each document. You can view documents and download any file attached to it.

Hi Vitaly, Thanks for your reply.

 I mean, when I click "Choose File", I can choose more than 1 file/documents

Ayu Andini wrote:

 I mean, when I click "Choose File", I can choose more than 1 file/documents

Well, to be able to choose multiple files you'd want to use one of the components on the forge. Just search for "multiple" and you'll see some.

https://www.outsystems.com/forge/Component_Search.aspx?q=multiple

Vitaly Martynenko wrote:

Ayu Andini wrote:

 I mean, when I click "Choose File", I can choose more than 1 file/documents

Well, to be able to choose multiple files you'd want to use one of the components on the forge. Just search for "multiple" and you'll see some.

https://www.outsystems.com/forge/Component_Search.aspx?q=multiple

I have downloaded the forge Multiple File Upload, but the oml corrupted. 

Hello Ayu.

You get better support if you post in the component support tab.


https://www.outsystems.com/forge/component-discussions/200/Multiple+File+Upload


Regards