F
Filament6mo ago
bogi99

fileAttachmentsDisk using RichEditor and the attached file does not show up, in fact it is a 404

mind blown,
i set APP_URL=http://127.0.0.1:8000 i done the php artisan storage:link i restarted npm run dev it created the folder, and deposited the file, the setting was public the disk was local. now i feel i don't know anything the file is sitting in /site/storage/app/articleattachments/ which is where it is set to store also the same situation with Tiny Editor, so , something is misconfigured, from the looks of it, and i tried all the known tricks
Solution:
You need to use the public disk not local. If the files shouldn’t be available publicly then you will need to make a proxy url that can check authorization before returning the file.
Jump to solution
3 Replies
LeandroFerreira
LeandroFerreira6mo ago
try http://localhost:8000
Solution
awcodes
awcodes6mo ago
You need to use the public disk not local. If the files shouldn’t be available publicly then you will need to make a proxy url that can check authorization before returning the file.
bogi99
bogi99OP6mo ago
i did make your changes, i will check if they made a difference. I changed it back to 127.0.0.1, did not make a difference here , but i do remember this was an issue before i think this was it, i needed to use disk public not local i also added public_path('articleattachments') => storage_path('app/articleattachments'), to config/filesystems.php and php artisan storage:unlink and php artisan storage:link to make sure we are properly linked, than you for the awesome help
Want results from more Discord servers?
Add your server