Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

yuyenkan's avatar

Validation for laravel on excel file

I using laravel excel to do import and export excel file, it is good on local, but when I push it to hosting, the excel file exported can be import, but after I edit with WPS office, it show mime type as application octet-steam that always fail on validation.

any idea why it happen and how can I solve it?

0 likes
2 replies
fylzero's avatar

@yuyenkan Try exporting with another office suite... like LibreOffice... I know that's a pain in the ass, but it might be an issue with WPS Office not setting something in the file correctly or using a proprietary implementation of Excel format.

At least you'll know if this is a problem with your app or a problem with WPS Office by trying that.

24 likes
yuyenkan's avatar

not only WPS, I found that excel file zipped and extract also get mime type as 'application/zip'

Please or to participate in this conversation.