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!ifox•97d ago
Hi @matias did you run the Laravel command:
php artisan storage:link
?matias•97d ago
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!
ifox•97d ago
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
1.4KMembers
View on DiscordWant results from more Discord servers?
More PostsInlineRepeater deleting data on related Model entriesI'm using an InlineRepeater to add relations with pivot data between two Repositories. The relations"astrotomic/laravel-translatable" n+1 queriesI've got a package issue which is composer required by twill.
800+ queries on a model only getting Repeaters and Blockeditor won't work with media library.I saw the pst regarding JSON repeaters. So I switched to the block editor for the content that NEEDSTag Field on Block not Displaying Saved TagsHello.
I am using the Tag Field in a block, the tags are being saved correctly, but the field is cFile link in view issueHi everyone i'm trying to render a file in blade view bug seem difficult to me how can i render linIssue using repository methods??? Twill 3Can someone please provide any support for the following error:
Declaration of App\Repositories\PostHow can I make sure my assets are loaded correctly on a subdomain?I have a site for example website.nl and a twill installation on website.nl/subsite
Now when I go tI can't see any images in twill media library.Hello, everyone!
I have installed twill and tried to upload a image to media library.
However, I amDatePicker ExceptionI'm getting an unexpected error while using a pretty simple DatePicker in my sidebar form.
`UndefinSome fresh vibes would be nice :))Would love to hear some global announcement about twill cms this year and where it's heading @ifox .