How to display a folder content?

Hi,
I’m using the “tm1-ui-upload” which stores my files in the web config file and that’s working fine.
Now I want to know how to display the content of this folder for my users to give them access to download these files?

Thanks.

Hi @adil.takafi,

There is no Canvas API to retrieve all files directly like that. However, you can design/plan to track the items being uploaded and store the paths in a Cube for example, via the tm1-after-upload property of the tm1-ui-upload directive if that is the intention.

For another example on how you can do that, check out the DBR Image example:

http://localhost:8080/samples/#/sample/component/dbr-image

And the Help section for the tm1-ui-upload for its other properties.


Cheers!
Paul

1 Like

Hi Paul,

Thanks for your reply.
It was very helpful.

Regards,

1 Like