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
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:Jump to 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.
3 Replies
try
http://localhost:8000
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.
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