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
Veronica
VeronicaOP4w ago
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
Lara Zeus
Lara Zeus4w ago
what the error you're getting? testing locally it uploaded normally!
No description
Veronica
VeronicaOP4w ago
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

Did you find this page helpful?