05-12-2020, 06:50 AM
Hi,
just wanted to update you on the usage of TIWFileUploader.CheckMimeType(), we have had it running in production for a while now. We have noticed one issue: if a user uploads a password protected xlsx file the function returns an empty string, which causes our security check to tell the user that it does not appear to be a valid xlsx file. Normally, the function will return 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' or 'application/zip' (we get the latter for Excel files we have created ourselves using TMS FlexCel). It would be great if it could return one of these also in the case of password protection.
Best regards
Magnus Oskarsson
just wanted to update you on the usage of TIWFileUploader.CheckMimeType(), we have had it running in production for a while now. We have noticed one issue: if a user uploads a password protected xlsx file the function returns an empty string, which causes our security check to tell the user that it does not appear to be a valid xlsx file. Normally, the function will return 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' or 'application/zip' (we get the latter for Excel files we have created ourselves using TMS FlexCel). It would be great if it could return one of these also in the case of password protection.
Best regards
Magnus Oskarsson

