Once you've uploaded an image using the FileUpload
component and saved it, you should see a preview in the component.
To find out if you've misconfigured your app, check for any console errors. 404s or 403s? Read on.
Make sure that the APP_URL
variable in your .env
file matches the domain you're using to access your app from, including the protocol (http
or https
). This is usually the problem.
Additionally, if you're using the public
filesystem driver, ensure that you have run php artisan storage:link
.
Hi everyone, I'm totally new to Filament but I already like it a lot and I plan on using it on a regular basis. I've been testing it for a few days now and I have this issue : my APP_URL variable is ok (APP_URL=http://localhost). Also, I did the "php artisan storage:link". When I upload a file, it is saved in the "public/storage" folder without any problems and a preview is displayed. When I hit the save button the preview disappears and a spinner spins endlessly. In the devtools here is what I have :
My problem seems to be related to CORS and even after a few hours searching I don't really know how to fix this. If anyone can help me a bit it would be appreciated. I am using php 8.1.5, Laravel 9.11 and Filament 2.0.
Ok I think I solved it. In case it might help someone, I changed the APP_URL variable from http://localhost to http://127.0.0.1:8000 and it seems to do the trick.