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

Did you find this page helpful?