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
Post a Comment