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?

6 Replies
check the network logs
any specific thing that i should be looking for
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
So open browser and network Logs, clear all. Then upload the file and monitor the update requests see the responses
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?
Yes, as Adam mentioned, check what's the recognized MIME type on production