How to get a list of file that have been uploaded to the server in code.
Getting some content provided to keep the website up to date is difficult as they are not overly technical, I'd like to write a script in a custom html widget to look into a folder <yourwebsite>/resources/Documents/<foldername> and a return a list of the files that currently exist in the folder. The aim is for pictures and pdf's to be listed and then the script creates the html to display the images with a link to the pdf.
This means users will only need to upload files and the site will auto publish them
Can this be done via the API, looking through swagger it does not seem possible?
Is there any other way to do this ?
![](https://secure.gravatar.com/avatar/7c6180d627e08c521036c495ad2b67a3?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Roger Brooks commented
Wild Apricot is fairly good at allowing administration without requiring knowledge of HTML, but this is a glaring exception. Lacking a function like this, there are many cases where HTML must be edited directly to update the website.