Local Storage and Production storages differ
Hey, so I'm having an issue setting storage. On my local installation, storage is located at directory/storage/files, whereas on the server they understandably go to directory/public/storage/files. How do I fix this? I attempted to do the storage link, but it said it was already set.
I'm sure it is some simple config somewhere, but I appreciate any help that can be provided!
Solution:Jump to solution
I think I fixed it. Looks like it had to do with permissions. changed FollowSymLinks to SymLinksIfOwnerMatch in .htaccess files.
13 Replies
Not sure I understand your issue 🤔
The files are uploaded to as opposed to They upload to directory A, B is where the app looks for them
The files are uploaded to \storage\app\publicThat's the correct path.
as opposed to \public\storageThat one shouldn't exist. It should be a symlink
it's not, how do I fix it?
What's the output of
readlink public/storage
on your server? Modified the user and domain
Looks good to me.
So what's the actual issue you encounter?
re-ran the sym link, said it created the link, but the files still don't load after uploading/saving
the issue is when I upload images they show up as not found when loaded
Where? FileUpload component? Table? Somewhere different? Any errors in console log?
in the table view
also when viewing the record. The link shows up when I inspect element, but the image appears as a broken image (hit enter too soon)
Solution
I think I fixed it. Looks like it had to do with permissions. changed FollowSymLinks to SymLinksIfOwnerMatch in .htaccess files.
Just wanted to ask what server you are using
VPS with cwp installed
Thanks for trying to work through it with me anyway