Validate file extension

Stable version 1.0.7 (Compatible with OutSystems 11)
Published on 15 Jun by 
4.0
 (2 ratings)

Validate file extension

Details
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 - https://asecuritysite.com/forensics/magic


Validate File Extension Demo 

 


 


What’s new (1.0.7)

Demo module out of the components application.

Reviews (0)