so i have this Form::file
in my view and i wanted to restrict the file to be uploaded to doc, ppt, pdf, docx, xls, xlsx, txt, etc. so i did my code like this
{{ Form::file('cascUpload' ,
Input::old('cascUpload'), array('id' => 'cascUpload' , 'type' => 'file' ,
'accept' => '.doc , .docx , .pdf , .ppt , .pptx , .xlsx , .xls , .csv , .txt' )) }}
but when clicked, the window opened still displays video , audio and other file types. any ideas on how to properly do this? thanks in advance!
edit i already have a backend checker if the user entered a file type that is not accepted. i just wanted to narrow down the user's choice to a correct file type when he clicked the browse for files. thanks