Validate file extension

Stable Version 1.0.0 (OutSystems 11)
Published on 13 Jan (3 days ago) by 
Created on 13 Jan (3 days ago)

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 



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.
Validate file extension has no dependencies.
Component Consumers
No consumers yet.
Weekly Downloads