In our SAP ABAP-based application we have a mail sending functionality. The problem is, it's an old framework and it takes only 3 characters file types for attachments. We now want to send .xlsx
files. But the framework only takes first 3 characters so it works with .xls
. So when a user opens an attachment he gets the following message:
The file you are trying to open, 'xxxxxxxxxxxxx.XLS', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
Now, I know one solution is to go to Trust center and hide that kind of messages. The another framework that generates the .xlsx
files can only generate .xlsx
. But I can enhance it.
My question is: in the Excel file structure (when extracted via 7zip), is there somewhere an information about what kind of file (filetype) in the file I just extracted?
Because if the message in the Excel is shown, I can imagine that there is a check that checks filetype of a file and some information in xml
files in the Excel file structure.
Thanks.