Question

2
Replies
178
Views
KalyaniK9826 Member since 2017 3 posts
Commonwealth Bank
Posted: 6 months ago
Last activity: 6 months 1 week ago

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
Share this page LinkedIn