FileUpload .xlsx
Hey everyone! 👋
I’m working on a Filament v3.2 app and I’m running into an issue when trying to upload files in a resource form. It works fine for .pdf and .png, but fails when I try to upload .xlsx files.
From what I’ve read, it seems like Filament supports .csv but not .xlsx. Has anyone dealt with this or found a workaround? Ideally, I’d love to be able to upload Excel files. Any tips or direction would be super appreciated. Thanks in advance! 🙏
4 Replies
Did you set the proper allowed file types? https://filamentphp.com/docs/3.x/forms/fields/file-upload#file-upload-validation
Yes, I tried that! Also I was reading the documentation and I tried mimeTypeMap but I got an error 'mimeTypeMap' doesn't exist despite my app is running in v3
what the error you're getting?
testing locally it uploaded normally!

Hi thank you for your time and test my issue.
Yes, I was having issues with .xlsx and .xls when I modified some php config I was able to upload my .xlsx without any issue, but the when uploading the .xls I'm still getting the error, it's a 422 type xhr
I tried publishing the livewire config and add .xls to preview_mimes