Within an application I am developing, there is a feature for downloading files that are stored as Base64 strings. It is essential to correctly pair the data types with the corresponding files in order to ensure successful downloads.
I thought I had sorted this out quite well. However, it appears that docx files are being downloaded as doc files and xlsx files as xls files. Is there a way to download these files in their proper file formats? Unfortunately, most of the websites that provide information on this topic are restricted by company policies.
For docx files, I currently have data:application/msword
and for xlsx files, I have data:application/vnd.ms-excel