478
Views
10
Comments
Solved
How to check if is excel file?

How can i check if the file is an excel file without using another components?

2025-07-22 10-24-12
Lakshmi Kumar Yadav
Solution

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

2019-10-12 21-49-06
Rodrigo Lima

Lakshmi Kumar Yadav wrote:

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

It worked for me. Thank you!!


2024-05-03 14-03-28
Sudip Dey

You can check the FileType. It will provide information about the file. I hope you will identify the file type from there.

Thankx,

Sudip

2019-10-12 21-49-06
Rodrigo Lima

The excel fileType is always ""application/octet-stream""?
All i want to do is an exception to translate this phrase to portuguese.
Thanks

You can check the FileType. It will provide information about the file. I hope you will identify the file type from there.

Thankx,

Sudip



2024-05-03 14-03-28
Sudip Dey

Rodrigo Lima wrote:

The excel fileType is always ""application/octet-stream""?
All i want to do is an exception to translate this phrase to portuguese.
Thanks

You can check the FileType. It will provide information about the file. I hope you will identify the file type from there.

Thankx,

Sudip



Please send me the OML File. So I can able to check the issue. 

Thank you,

Sudip


2019-10-12 21-49-06
Rodrigo Lima

 

Rodrigo Lima wrote:

The excel fileType is always ""application/octet-stream""?
All i want to do is an exception to translate this phrase to portuguese.
Thanks

You can check the FileType. It will provide information about the file. I hope you will identify the file type from there.

Thankx,

Sudip



Please send me the OML File. So I can able to check the issue. 

Thank you,

Sudip


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


2024-05-03 14-03-28
Sudip Dey

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/

Thank you,

Sudip

UserImage.jpg
Pedro Dias

Im having the same problem, i cant find this error message to i translate to another languages.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

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/

Regards,

Daniel

2025-11-19 06-14-01
Miguel Verdasca
Champion

Hi,

why tou don't use the content type of the uploaded file:

regards,

Nuno Verdasca


2025-07-22 10-24-12
Lakshmi Kumar Yadav
Solution

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

2019-10-12 21-49-06
Rodrigo Lima

Lakshmi Kumar Yadav wrote:

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

It worked for me. Thank you!!


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.