i am using ignition 8.1.35 version ,i have to imported one excel file in web dev file resource , While uploading that file MIME type is set to application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
and in perspective on clicking on the button i would like to download that excel file, so i used the below code
Define the path to the file resource
filePath = "webdev/fileResources/template.xlsx" # or template.xls
Trigger the download
system.perspective.downloadFile(filePath, "template.xlsx") # or template.xls
when i click that button i am able to download the excel file but i am not able to open it. its telling file extension or format is incorrect
is there any solution