The control <input type="file" accept="">
Is it the accept comma seperated string of the file field exposed - if so how can be it be accessed using asp.
A list of acceptable file types can be placed in the accept="" attribute of the <input type="file" > - can this be accessed with ASP?
only the inputs name and value are returned in the form. You may be able to use client side javascript to get the acceptable file types and stick them in a hidden field for you.
recommendation is to use java and asp server side ( after submit for the java disabled ) to validate the value of the input type file ( text wise ) to verify the file type, as for the accepts, i dont personally think i've encountered this tag attribute for input before, then again i'm old skool
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.