Hello,
I'm currently developing an app that only allows PDF file uploads to Dataverse. However, I'm concerned about potential file extension forgery attempts, where users might change the extension of a non-PDF file to ".pdf" and upload it.
I've reviewed Microsoft's documentation (https://learn.microsoft.com/en-us/power-apps/developer/data-platform/files-images-overview), which indicates that file restrictions can be implemented based on file extension and MIME type. However, I'm unclear about how Dataverse determines a file's MIME type. Therefore, I'd like to ask the following:
- Can Dataverse identify non-PDF files from their content even if they have the ".pdf" extension?
- If Dataverse cannot determine file format based on content, are there any alternative methods (within or outside Dataverse) to prevent file extension forgery?