Well......I would use a database.
When you upload the file, it adds an entry to the DB with an id, a name and a URL.
Then you just print the names in a looped query.
That's if you want the to upload the file.
If you want them to write it on the site.... Then just post the data to a database then get the information in a loop 😃