Is an Excel File?

Is an Excel File?

  

How to check if an uploaded file is really an Excel file?

regards,

indra

Halo Om,

Upload Widget has Id,Content,Type and Filename attributes. Maybe you could check at least from the filename given and make sure extension is right i.e. xlsx

Solution

Hi Indra,

I found an OutSystems component to edit and create excel files. You can check if an uploaded file is an excel one by opening it using this component and if no exceptions or strange value are returned you can assume that it is an excel file.


Regards,

António Pereira

Solution

Thank you all,

I am thinking to use the content type of the uploaded file:

regards,

indra