Why are my file previews not loading?

Trick Forms
Dan Harrin avatar Author: Dan Harrin
Published: Aug 01, 2023

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.

The author

Dan Harrin avatar Author: Dan Harrin

Dan is a software engineer from the UK. He is one of the co-creators of Filament, and leads development of the project. He is passionate about open-source software, and building tools that simplify complex problems.

When he's not coding, Dan enjoys music, board games, and cooking.

Articles
11

From the same author