Let me try to explain this as best as i can. Basically i wanna create a templating system where admins can upload html files from a administrator panel. And load these files for the end user in an iframe ofcourse i want to do this in a safe way without a possibility of a security breach. My idea was to create one GET route like this /file/{file} and create a controller that takes the file from local storage and displays it in the page in an iframe and if the file is not there return a 404 page. The reason i want to do this is to avoid messing with cpanel everytime or overwriting project files every single time i made a new php page including a new file. and wanna do most of the stuff from the backend. Obvious you boys 'n girls are a lot more skilled than i am so would love your guys opinion on how to safely implement something like this.
thanks for reading and hope you guys can help me 🙂