F
Filament4d 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
6 Replies
toeknee
toeknee4d ago
check the network logs
Anik
AnikOP4d ago
any specific thing that i should be looking for
Mohamed Ayaou
Mohamed Ayaou4d 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
toeknee3d ago
So open browser and network Logs, clear all. Then upload the file and monitor the update requests see the responses
awcodes
awcodes3d 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 Koch3d ago
Yes, as Adam mentioned, check what's the recognized MIME type on production

Did you find this page helpful?