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') ])
No description
No description
No description
Solution:
Sorry 😦 I change APP_URL=http://0.0.0.0 and it working, I read few times this post
Jump to solution
21 Replies
Dennis Koch
Dennis Koch8mo ago
Can you access the file via it's URL?
Serjiklis
Serjiklis8mo ago
Hi, Dennis, no I have page 404 (http://0.0.0.0/01HFAEDT24GJJDN9MJF7605M60.jpg ).
Dennis Koch
Dennis Koch8mo ago
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.
toeknee
toeknee8mo ago
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.
Serjiklis
Serjiklis8mo ago
😦 ups this url work and I have got image
Filament
Filament8mo ago
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.
Serjiklis
Serjiklis8mo ago
No description
Dennis Koch
Dennis Koch8mo ago
Try these.
Serjiklis
Serjiklis8mo ago
I made this php artisan storage:link before when I was create storage.
Dennis Koch
Dennis Koch8mo ago
What's your APP_URL?
Serjiklis
Serjiklis8mo ago
local
Dennis Koch
Dennis Koch8mo ago
URL
Serjiklis
Serjiklis8mo ago
Dennis Koch
Dennis Koch8mo ago
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
Serjiklis
Serjiklis8mo ago
Sorry 😦 I change APP_URL=http://0.0.0.0 and it working, I read few times this post
pegos
pegos8mo ago
also, try php artisan storage:link and set your app_url to an actual url
Serjiklis
Serjiklis8mo ago
It 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 👍
Adnan Yalahow
Adnan Yalahow4mo ago
sir i came accross to this problem i can accces via URL and still its loading will you help me please
toeknee
toeknee4mo ago
Please open a new post