Fileupload field

Hi Everyone I have this problem, when I want to upload image is still loading like in the screenshot and if I have images before is showing like blank black. anyone can help with that? Many thanks
No description
70 Replies
Mstrihi
MstrihiOP4mo ago
Forms\Components\FileUpload::make('images') ->multiple() ->label(__('lang.images')) ->directory('projects') ->panelLayout('grid') ->storeFileNamesIn('projects'), this my code and this happen only in Edit
LeandroFerreira
LeandroFerreira4mo ago
console errors?
Mstrihi
MstrihiOP4mo ago
No description
Mstrihi
MstrihiOP4mo ago
and this what I get in network but when I copy the link and open it in browser I see the image
No description
Mstrihi
MstrihiOP4mo ago
this information what I have
awcodes
awcodes4mo ago
Did you recently update filament by any chance and is this in panels or standalone? Inject makes me think it’s either a Vite issue or a webpack issue and it’s breaking the js.
Mstrihi
MstrihiOP4mo ago
I tried to update to last version and same problem and I just have filament
awcodes
awcodes4mo ago
Can you share your panel provider?
Mstrihi
MstrihiOP4mo ago
here the panel
No description
Mstrihi
MstrihiOP4mo ago
oh not readable sorry just a sec
awcodes
awcodes4mo ago
No worries.
Mstrihi
MstrihiOP4mo ago
here the file
awcodes
awcodes4mo ago
Are you using the FileUpload or are you using tomato’s plugin where the error is occurring?
Mstrihi
MstrihiOP4mo ago
normal FileUpload, I use it in other resources where only one image an works fine
Mstrihi
MstrihiOP4mo ago
No description
Mstrihi
MstrihiOP4mo ago
this example from another resource
awcodes
awcodes4mo ago
And you haven’t published any views? Sorry for all the questions, just need to understand the app.
Mstrihi
MstrihiOP4mo ago
those
No description
awcodes
awcodes4mo ago
Can you run php artisan about —only=Filament for me For some reason the js is breaking just trying to track down why.
Mstrihi
MstrihiOP4mo ago
Command "only=Filament" is not defined.
awcodes
awcodes4mo ago
php artisan about —only=Filament
Mstrihi
MstrihiOP4mo ago
The "--only" option does not exist. composer show filament/filament I used this before
awcodes
awcodes4mo ago
That should definitely exist. Run it without the flag
Mstrihi
MstrihiOP4mo ago
No description
awcodes
awcodes4mo ago
That looks ok. Try ‘php artisan filament:assets’
Mstrihi
MstrihiOP4mo ago
No description
awcodes
awcodes4mo ago
Only other thing I can think of is maybe a browser extension or a plugin causing issues with the js.
Mstrihi
MstrihiOP4mo ago
the wired thing is in cerate works fine only in Edit I have this issue
awcodes
awcodes4mo ago
At this point if you can share the repo I can dig more tomorrow.
Mstrihi
MstrihiOP4mo ago
I try it in other browser and same
awcodes
awcodes4mo ago
Yea, at this point I’m out of ideas and would need to be able to see all the code. If you can share the repo I can look into it further tomorrow.
Mstrihi
MstrihiOP4mo ago
I can add you into repo since is private repo
awcodes
awcodes4mo ago
That’s fine. Just need to be able to pull it down and recreate it locally.
Mstrihi
MstrihiOP4mo ago
I added you
No description
awcodes
awcodes4mo ago
But I would start by disabling browser extensions and removing plugins’s one at a time to see if the problem is there. I’ll let you know after I’ve had time to look at it.
Mstrihi
MstrihiOP4mo ago
what about rebuild js file?
awcodes
awcodes4mo ago
Wouldn’t hurt to do a npm run build.
Mstrihi
MstrihiOP4mo ago
you checked this image as well in network?
No description
awcodes
awcodes4mo ago
The url looks ok. But can’t really do anything with that. Wait, you did run php artisan storage:link right?
Mstrihi
MstrihiOP4mo ago
yes already done
awcodes
awcodes4mo ago
Are you on shared hosting by any chance?
Mstrihi
MstrihiOP4mo ago
If I remove this ->panelLayout('grid')
Mstrihi
MstrihiOP4mo ago
this output
No description
Mstrihi
MstrihiOP4mo ago
yes is in shared hosting but locally has same issue
awcodes
awcodes4mo ago
Ok. I’ll look at it as soon as I can and get back to you.
Mstrihi
MstrihiOP4mo ago
thank you so much
awcodes
awcodes4mo ago
Which resource is this in?
Mstrihi
MstrihiOP4mo ago
when I move to first step works
No description
Mstrihi
MstrihiOP4mo ago
in project resource
Mstrihi
MstrihiOP4mo ago
when I add empty field in same step aslo works
No description
Mstrihi
MstrihiOP4mo ago
but I need to switch browser tab
Mstrihi
MstrihiOP4mo ago
and if only one step works
No description
awcodes
awcodes4mo ago
Weird. Can you try something for me, remove filament/notifications from you composer.json and run composer update.
Mstrihi
MstrihiOP4mo ago
ok will do it
awcodes
awcodes4mo ago
filament/filament will install the appropriate version of all the packages.
Mstrihi
MstrihiOP4mo ago
still same after remove notification so if images was in first step in wizard or in any page with fields works fine only if it's in next steps and without any another fileds not working this what I notice
awcodes
awcodes4mo ago
Yea. On my phone at the moment, but nothing obvious is standing out to me. Could be a bug but will know more tomorrow.
Mstrihi
MstrihiOP4mo ago
maybe a bug in the package but I really need to fixed since we can't upload images like that
awcodes
awcodes4mo ago
I hear you. But there’s not more I can do tonight to troubleshoot.
Mstrihi
MstrihiOP4mo ago
yes I totally understand and thank you so much for your help
Mstrihi
MstrihiOP4mo ago
when I start uploading something in edit I get this
No description
awcodes
awcodes4mo ago
Sounds like something in filepond. Odd though. I would expect issues on GitHub if something broke in filepond.
Mstrihi
MstrihiOP4mo ago
I really don't now but it's work only if there is field inside the step or if the fileupload was in first page what more weird for me in create works fine but in Edit not
Mstrihi
MstrihiOP4mo ago
should I replace this file?
No description
awcodes
awcodes4mo ago
No.
Mstrihi
MstrihiOP4mo ago
for now I just moved the upload file to step 01 until we found soltuion Hi @awcodes you had any chance to review it?
Mstrihi
MstrihiOP4mo ago
I already create new public repo has same issue, and submit on github https://github.com/filamentphp/filament/issues/14270
GitHub
File Upload Stuck and Previously Uploaded Images Show as Black Boxe...
Package filament/filament Package Version v3.2.112 Laravel Version v10.0.0 Livewire Version v3.0 PHP Version PHP 8.3 Problem description When using the FilamentPHP Wizard with a FileUpload field in...
awcodes
awcodes4mo ago
I sent you a PM. I couldn’t install since I don’t have access to 2 of the packages. @Mstrihi Ok, i can't replicate the issue with the repo you provided. So my guess is something to do with the shared hosting and the server setup.
awcodes
awcodes4mo ago
No description
Want results from more Discord servers?
Add your server