Image Load not ending
I can’t understand why the downloaded file is not displayed in the admin panel when downloading the file, initially it is downloaded, the image is shown when you click on the save button, the download does not finish and the thumbnail of the downloaded file is not displayed in the list, a name is generated and the file is saved in the storage.
I have: APP_ENV=local
I was created storage with: php artisan storage link
My form :
Section::make()
->schema([
FileUpload::make('thumbnail'),
Toggle::make('active'),
DateTimePicker::make('published_at')
->required(),
Select::make('categories')
->relationship('categories', 'title')
->required(),
]),
public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\ImageColumn::make('thumbnail')
])
21 Replies
Can you access the file via it's URL?
Well if this gives you a 404, then it's not a Filament issue. Check why it's not returning files. Double check the symlink to your storage folder.
You also shouldn't be uploading files to public. You are supposed to upload them to public/storage/images/post/post_id/ as an example. or /post/ if random filenames.
😦 ups this url work and I have got image
Filament
Why are my file previews not loading? by Dan Harrin - Filament
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
Try these.
I made this php artisan storage:link before when I was create storage.
What's your
APP_URL
?local
URL
APP_URL=http://localhost
So, did you read the link above?!
Apparently not. PLEASE read the stuff we send you.
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.
Solution
also, try
php artisan storage:link
and set your app_url to an actual urlIt work now
I just was need change APP_URL in .env file
sometimes you concentrate on one thing and the solution lies before your eyes and you don’t see it. That’s how it is with me today
Thank you so much for your help 👍
sir i came accross to this problem i can accces via URL and still its loading will you help me please
Please open a new post