Files in "writable" / Preview via "http" not working, ideas? |
Hey folks,
I try to code something like a file browser (Win: Explorer/Mac: Finder), very small but working with all folders and files. My understanding is to create a subfolder in "writable", and it works, I can do and view all files and folders, upload works too, but... my "Preview function" has some problems. I use a javascript to preview .pdf files and this script needs an url. Maybe I missed something, but building urls for me is only working if files are in the "public" directory, files in the directory "writable" cannot accessed by url, e.g. https://mydomain/writable/server/images/photo.jpg It seems I have to code a separate controller to make these files visible, but I'm not sure. A want to avoid to move the server folder to public (or should I???). In public folder it wouldn't be a problem. Has anybody a solution or idea? |
Messages In This Thread |
Files in "writable" / Preview via "http" not working, ideas? - by Renkman - 05-09-2022, 08:09 AM
RE: Files in "writable" / Preview via "http" not working, ideas? - by iRedds - 05-09-2022, 11:58 AM
RE: Files in "writable" / Preview via "http" not working, ideas? - by MGatner - 05-15-2022, 03:40 AM
|