Загрузка и проверка файлов

Я использую плагин JQuery Validation - https://jqueryvalidation.org/ с плагином Drag n Drop для загрузки файлов https://css-tricks.com/drag-and-drop-file-uploading/.

Пожалуйста, помогите мне выделить Валидатор, если пользователь не отправил файл.

Соответствующий HTML здесь -

<div class="filearea1">
<div class="box" id="uploader1">
    <input hidden="true" type="file" id="upload-file" name="upload-files[]" class="box__file" />
    <div class="box__input2">
        <label class="box__input3" for="upload-file">
            <i class="fa fa-upload fa-2x"></i>
            <span id="upload-filename"></span>
            <span id="upload-filetip">
                <span class="box__dragndrop" style="color: gray"> Drag File here (one only) .</span>
            </span>
        </label>
    </div>
</div>

0 ответов

Другие вопросы по тегам