List files from a folder in the Media Manger

Question:
How do I fetch files from a folder in the Media Manger and populate a repeater with the file name, download link/button, and file type (*.pdf, .docx, .xlsx).
Not needer but would be nice
:** have an incon display what file type it is.

Product:
WIX editor

What are you trying to achieve:
I’m needing to make a password protected webpage where password holders can get in, see all documents they can download, and download.

What have you already tried:
I’m currently looking at using listFiles() under wix-media.v2
-Yes, I’m newish to Velo with a fuzzy knowledge of JS… I learned and was proficient in about 11 years ago.

Additional information:
I can provide the code I use, but I am not allowed to share a website from this client’s site.

That is the correct function. Where are you getting stuck at?

Look at the example codes provided to the right of the documentation, that will help you get a hang of how to implement it. Note there are various examples that can be viewed by clicking the dropdown on top of the very first example code snippet.

Also the AI assistant in the docs itself can be pretty helpful too.