How to set minSize in Bootstrap Validator
问题 I'm trying to figure out how to set the minSize for a file upload using Bootstrap Validator plugin. Given the following code, I can set the maxSize maxSize , but not minSize $(document).ready(function () { $('#test').bootstrapValidator({ live: 'enabled', fields: { fileupload: { validators: { file: { extension: 'png', type: 'image/png', maxSize: 1024 * 1024, message: 'The selected file is not valid, or the size is not large enough!' } } } } }); }); Is there a way to set it for minSize? 回答1: as