Does your webserver follow symlinks? In Apache you have to set Options +FollowSymLinks for the directories concerned. Just a guess! :-)
Symbolic link from storage to public not working
Hi,
I'm building an application where user can upload mods. I'm storing the images for the mods in the /storage folder. Here's what the path looks like for a mod image :
/storage/mods/{ mod_id}/images/{ filename.extension}
Since we can't directly access the files in /storage from views, I made a symbolic link from the storage/mods to public/mods, using this command while in my project folder :
ln -s storage/mods public/mods
I'm trying to access an image like this :
mods/3/images/123.png
But I get a 403 forbidden in the console, and the image does not show up.
What am I doing wrong? Is that the proper way to access files in the /storage folder from views?
Can you try rm'ing the current symlink and doing ln -s /Users/charles/Documents/Web/Mods/public/mods/ /Users/charles/Documents/Web/Mods/public/mods - just to check the symlink is right? I'm not on a Mac just now so not 100% sure, but the ls output doesn't look quite right :-)
Edit: I'm about to head off for dinner - if that doesn't fix it hopefully someone else will chip in :-)
Please or to participate in this conversation.