Hi I am trying to validate if a file input is not empty so I am doing this:
My HTML code:
<input accept="image/jpeg, image/png, image/gif" type="file" class="form-control" v-on:change="onFileChange">
I am doing the validation in the button:
<button
:disabled="I need to know what it'll be here ? !isDisabled : isDisabled"
type="submit"
class="btn btn-success btn-icon-split">
<span class="icon text-white-50">
<i class="fas fa-check"></i>
</span>
<span class="text">Guardar</span>
</button>
But I do not know how to do that because it does not have v-model and I do not know how to check if it's empty. How could I do that?
Thanks