Only accept excel files when importing #3552
Unanswered
alejandromora99
asked this question in
Q&A
Replies: 2 comments
-
can you please try to upload the file before sending it to the import class some thing like below :
give this one a try and see if it solves the problem . |
Beta Was this translation helpful? Give feedback.
0 replies
-
You should validate it yourself using Laravel's request validation (mime type) |
Beta Was this translation helpful? Give feedback.
0 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, I'm trying to validate the errors that pop up when trying to upload a wrong file, for example when uploading a .png, I'm doing this:
but I get errors when uploading .exe files, like this:
Is there any other way to only accept excel files for example?
Beta Was this translation helpful? Give feedback.
All reactions