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

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

Thankx,

Sudip

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

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



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/

Regards,

Daniel

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


 

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


Hi,

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

regards,

Nuno Verdasca


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

Solution

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!!