My static assets inside my /public/static_assets/ folder all show up with standard
<img src="/static_assets/image1.jpg">
Files I upload to my volume however I can not figure out how to see.
<img src="/tempassets/uploads/image2.jpg">
In Wappler I have set my User Uploads Folder to /tempassets/uploads
and my file upload works fine, it uploads files as well as creates folders perfectly.
I have checked that the file I am trying to view actually exists, which it does, I can see the file inside /tempassets/uploads/image2.jpg
however if i navigate to the url https://www.example.com/tempassets/uploads/image2.jpg
it does not show.
I assume I am being silly and just not understanding something, but can not figure it out
If I check the actual server itself with
ls -lar /var/lib/docker/volumes/mywebsitejan2021__mysite_user_uploads/_data/
It shows image2.jpg
as -rw-r--r--
root
root
I even tried to chmod the file to 777
which still will not show it. I can only assume its missing some config file that mounts the volume or something, and that is probably because when setting up originally I never set the User Uploads Folder
in my project settings, I have only done this now after all the docker stuff was already setup and in place.
I have also just gone and switched target and back again, and opened the target window and saved again to see if I could get it to add the config i need, but still nothing really showing me how to see this.
Any help please, much appreciated.
Edit: Wondering if I should have created the User Uploads Folder
inside the public
folder with /public/tempassets/uploads
rather than what I did, at the site root of just /tempassets/uploads
?