File display issue
I used a FileUpload and RichEditor to upload files of different types. I am sure that they can be uploaded normally. However, when I try to download them, it will show 404 and the image cannot be seen. The situation can be seen in the image.
If you need more information, please tell me what information you need.
15 Replies
I am trying to download a PDF file from your website, but I am getting a 404 error. Is it possible that the path to the file is incorrect?
when i down this png
Did you run
storage:link
artisan command command?i didn't
you mean "php artisan storage:link" ?
Yes
I haven't run the php artisan storage:link command, but I got the error "The [C:\xampp\htdocs\vms3\public\storage] link already exists". I think I should delete the storage folder and run the command again?
Is
public/storage
a folder or symlink? Try deleting public/storage
and run that command again. Not sure how that works under Windows.but my file not in public/storage
That's right. It should be in
storage/app/public
. But public/storage
should be symlinked to that folderyou mean this file need to symlinked storage\app\public ?
I think this is a symlink on Windows but I am not sure. Sorry.
you are right
Make sure they properly work with XAMPP