F
Filament2mo ago
Anik

Error with spatie media file upload

Hello, I am getting an error with fileupload in my production server. But unfortunately, I am not getting the error in local env. Whenever I try to upload an image file. It says file type not supported on production. On local it works without any issue. There is also a console error which appears from file upload js on page load. Any ideas on what is causing this issue?
No description
Solution:
My bad, I should have updated this thread. The error was due to browser cache. Remember guys, always clear your browser cache after updating filament.
Jump to solution
7 Replies
toeknee
toeknee2mo ago
check the network logs
Anik
AnikOP2mo ago
any specific thing that i should be looking for
Mohamed Ayaou
Mohamed Ayaou2mo ago
4XX and 5XX errors it may be and error that not shown by laravel debug mode In most of times when I face such frontend only errors with filament I just clear all the caches and optimizations, or composer update + publishing livewire assets or even php artisan filament:assets / php artisan filament:upgrade
toeknee
toeknee2mo ago
So open browser and network Logs, clear all. Then upload the file and monitor the update requests see the responses
awcodes
awcodes2mo ago
Seems like your production server can’t infer the correct mine type. Can you confirm if your prod server has php GD or Imagick extensions installed?
Dennis Koch
Dennis Koch2mo ago
Yes, as Adam mentioned, check what's the recognized MIME type on production
Solution
Anik
Anik4w ago
My bad, I should have updated this thread. The error was due to browser cache. Remember guys, always clear your browser cache after updating filament.

Did you find this page helpful?