Kalyani Kallem (KalyaniK9826)
Commonwealth Bank

Commonwealth Bank
KalyaniK9826 Member since 2017 3 posts
Commonwealth Bank
Posted: March 9, 2020
Last activity: March 10, 2020
Posted: 9 Mar 2020 23:26 EDT
Last activity: 10 Mar 2020 0:12 EDT

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
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.