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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -