How can i check if the file is an excel file without using another components?
Hi Rodrigo Lima ,
I agree with Nuno miguel verdasca.
Also you can try to use
SyntaxEditor Code Snippet
Index(UploadWidget.Filename,".xls",startIndex:,searchFromEnd:,ignoreCase:True)>-1
Hope this helps you!!
Regards,
Lakshmi Kumar
Lakshmi Kumar Yadav wrote:
It worked for me. Thank you!!
You can check the FileType. It will provide information about the file. I hope you will identify the file type from there.
Thankx,
Sudip
The excel fileType is always ""application/octet-stream""?All i want to do is an exception to translate this phrase to portuguese.Thanks
Rodrigo Lima wrote:
Please send me the OML File. So I can able to check the issue.
Thank you,
Sudip Dey: I cannot make OML available. But follow a picture below.I need to limit the user to trying to upload different Excel files.
Daniël Kuhlmann: I'm in a traditional web project
Also please check this Link of the forum and hope it will also help you,
https://www.outsystems.com/forums/discussion/33689/is-an-excel-file/
Im having the same problem, i cant find this error message to i translate to another languages.
Hi,
For reactive there is a solution with example oml available in the following discussion:
https://www.outsystems.com/forums/discussion/54515/reactive-web-check-file-type/
Daniel
why tou don't use the content type of the uploaded file:
regards,
Nuno Verdasca