How to display all the previously uploaded files in the Multi File Uploader

Hi everyone,

I’m confused about how to display all the uploaded files in the multi-file uploader element. In the app that I’m building, there’s a feature where users can change the content that they uploaded in the past. So I needed to display the names of the previously uploaded files in the multi-file uploader and I was able to display only a single file item. How can I display all the uploaded content within the Multi-file uploader?


Thanks in advance.

Hey @malanbandaralk

  1. You need to have a custom state of field type ‘File’ and set to a list of files. You would also need to have a field within your datatype thing for list of files.

  2. Then you would want your multi-file uploader data source to be set to the list of files custom state.

  1. After I click upload/view files, I would set the custom state to the data type things list of files.

image

  1. I would then on ‘Done’ or where you are confirming your upload, set the state to the multifile uploader’s value. For clarity, I am also showing an image where the multifile uploader is also referencing the custom state within this mini-popup but this was by design and may not pertain to you.


image

  1. You would then update your thing to File add list custom state list of files

image

If you still can’t get it to work, I can send you a copy of this demo app I am referencing so that you can reference it yourself.

Hope this helps.

2 Likes

This was very helpful. Thank you very much!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.