How to make html input tag accept xlsm?

Viewed 67

Im trying to accept .xlsm file using the input tag.. but i able to accept xlsx only Here is my html

 <input type="file"
       accept="image/png, image/jpeg, application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
       ng-maxlength="100"
       required />

What should I add to the "accept" to allow me to upload .xlsm file ??

2 Answers

Can you check if this works for you!

<input type="file"
   accept=".xl*">
   ng-maxlength="100"
   required 
/>

Does this help? application/vnd.ms-excel.sheet.macroEnabled.12

<input type="file"
       accept="image/png, image/jpeg, application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel.sheet.macroEnabled.12"
       ng-maxlength="100"
       required />

Related