I think that is not possible. You can validate file type with mimes via validator.
Stol3x said:
I think that is not possible. You can validate file type with mimes via validator.
yes I can use validator but I want to filter type with html too
solved with js
<!-- filetype extension -->
<script type="text/javascript">
function SetAccept() {
document.getElementById("file").accept = "text/csv,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
}
SetAccept();
</script>
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community