File library 404 error
Hello, I'm encountering issues with the file library. When I upload a file, such as a .txt file, it's successfully saved on my server. However, when I attempt to download it or use it in the frontend the file is not found.
I haven't configured anything because I believe Twill works by default with the local file library. My file was saved in the same directory as the media library: storage/app/public/uploads/.
Here's the output of the command find . -name test_twill_file_upload.txt:
sh-4.2$ find . -name test_twill_file_upload.txt
./c4fe4ab1-68d8-4331-bdae-2706cfd1b459/test_twill_file_upload.txt
Any help will be greatly appreciated, thanks!3 Replies
Hi @matias did you run the Laravel command:
php artisan storage:link
?Hello @ifox , yes, I did. My local images work fine, so it seems to be a file issue.
Sorry, that was the issue. Oops! Thank you for your help!
The reason it isn't needed for images is because they are rendered through a Laravel route using Glide. Files are served directly from the filesystem so the public link to storage needs to be in place