I'm currently working on a personal file storage website as part of a practice project. The code itself is functional, but I'm facing the challenge of managing a large JSON file containing the names of all the files I want to display on the website.
Is there a way for JavaScript to automatically read these files? Just to provide some context, all the files are housed in a single folder.
This is an overview of my file structure;
root
|-HTML
|-Style
| |-CSS
| |-JS
| |-Downloads.js (the JavaScript file responsible for managing downloads)
|-Files
|-files (this folder contains all actual files)
|-img (this folder contains thumbnail images used on the site)