Question

2
Replies
360
Views
Close popover
Kalyani Kallem (KalyaniK9826)
Commonwealth Bank

Commonwealth Bank
AU
KalyaniK9826 Member since 2017 3 posts
Commonwealth Bank
Posted: March 9, 2020
Last activity: March 10, 2020

How to check the MIME Type of a file before upload

We have implemented the file type(extension) checking based on file name (sample.txt) and restricting the user to upload certain types of files.

There is a possibility of changing the extension of different file type and upload to the application.

Ex: User has an executable file webex.exe and this can be changed to webex.png by renaming it and can be uploaded.

How to check the file type(or mime type) based on the content (not just the filename)?

Pega Platform 7.3 Case Management Mobile Financial Services Senior System Architect