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 ?
-
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.