Support the ongoing development of Laravel.io →
Input Blade Forms
Last updated 2 years ago.
0

I think that is not possible. You can validate file type with mimes via validator.

Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

Use javascript for that.

Last updated 2 years ago.
0

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>
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

messi89 messi89 Joined 8 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.