Validate file extension

Stable Version 1.0.5 (OutSystems 11)
Published on 05:44 (4 hours ago) by 
Stable Version 1.0.5 (OutSystems 11)
Published on 05:44 (4 hours ago) by 

Validate file extension

Component will help you finding the MIME/Content Type & Validate the file extensions
Read More

We are going to upload a document from HTML input & we can find the magic number of that file & from that number we can find the file type of that file.

Magic Number:

  • A magic number is a number embedded at or near the beginning of a file that indicates its file format (i.e. the type of file it is).
  • This number is not visible to us.
  • Every file has a number that represents the name of file types which is hexadecimal format.
  • In our program, we will convert it into bytes and an array for checking file type.

Chart for the magic number


Note: Refer chart source for file types Wikipedia.

1. Known Mime Types

2. Common MIME Type 

Digital Investigation Site for Magic Numbers -

Validate File Extension Demo 



What’s new (1.0.5)

Rectify the bug for old office files like .doc, .xls, .ppt

Reviews (0)
Device capabilities, Files & documents
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Shahaji Nangare who created this component.
See all 2 dependencies
Component Consumers
No consumers yet.
Weekly Downloads