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