How to define, which file type my excel is? #3020
Unanswered
tcagkansokmen
asked this question in
Q&A
Replies: 1 comment 2 replies
-
If you don't pass the file type, we'll try to autodiscover the filetype based on the extension. That might work for you? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I created a system with excel import. But I don't know, in which format will my user upload the excel.
If I import as;
Excel::import(new SoftImport($upload->id), $filename, null, \Maatwebsite\Excel\Excel::XLSX);
then, XLS files return error.
If I import as,
Excel::import(new SoftImport($upload->id), $filename, null, \Maatwebsite\Excel\Excel::XLS);
then XLSX files return error.
I need to define at the begining "which excel type does this document has" and import it with that.
But couldnt find any solution on documentation.
How can we do that?
Beta Was this translation helpful? Give feedback.
All reactions