excel - xlsx is not working in formvalidation.io? -


i using bootstrap formvalidation plugin want make validation on input type file problem formvaliadtion.io not picking xlsx format working on xls . want accept both formats (xls , xlsx). here code:-

file: {     validators: {         file: {             extension: 'pdf,doc,docx,xls,xlsx,jpeg,jpg,png',             type: 'application/pdf,application/msword,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/jpeg,image/png',             maxsize: 2097152,                message: 'the selected file not valid , should less 2mb'            }         }     }, 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -