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

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 

 


 


Reviews (0)
Category
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.
Dependencies
Validate file extension has no dependencies.
Requirements
Platform:
11.8.0.12006
Database:
All
Stack:
.NET
Component Consumers
No consumers yet.
Weekly Downloads