CompanyOnwership_icon
Borislav Shumarov, Renato Torres
Created on 09 May 2022
icon_unfollowing
Login to follow
mime-type-library

MIME Type Library

Stable version 2.1.0 (Compatible with OutSystems 11)
Uploaded on 31 January 2023 by 
Borislav Shumarov, Renato Torres
mime-type-library

MIME Type Library

Details
A MIME Type Utils Library, with a MIMEType Static Entity, that could be exposed and used from another modules. Can retrieve the corresponding MIMEType from a Binary Data file, based on the magic numbers. Uses GetMimeTypes by Magic Numbers by Rui Félix under the hood for functionalities.
Read more

Contains a public MIMEType Static Entity, which could be referenced from another modules:


The library has the functionality to retrieve 1 or more corresponding entries from the MIMEType Static Entity by providing a Binary Data file:

 

- MIMEType_GetAllSuitable - Returns a list of suitable MIMETypes on the basis of the magic numbers of a Binary file
- MIMEType_GetByFile to MIMEType_Get - Returns a suitable MIMEType on the basis of the magic numbers of a Binary file

with optional parameters ExtensionPrioritized - Extension of file e.g. ".pdf", ".docx", etc. If non-empty and if more than 1 matching MIME Type found, a check will be made against this parameter and if such an entry exist, it will be the one returned / returned as first in the list

 


Release notes (2.1.0)

MIMEType Static Entity:

preceding "." included for txt entry

Shoutout to David Bednarski ;)

License (2.1.0)
Reviews (1)
by 
2022-06-04
in version 1.1.0
Handy little component!
One minor thing I noticed, all of the values in the "extension" field include the preceding "." except for txt.  (version 1.1.0)
Category
Functional libraries & utilities, Files & documents
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
See all 1 dependencies
Application Objects
MIME Type Library has 1 AOs.
Team
Compatible with
Version 11
Database:
All
Asset consumers
See all 1 consumers
Weekly downloads