Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp and <input type="file" accept="">

Status
Not open for further replies.

mit99mh

Programmer
Sep 24, 2002
246
GB
Is it the accept comma seperated string of the file field exposed - if so how can be it be accessed using asp.

Any help much appreciated.
 
If your using quotes and you need to double up on then to produce in html.. what is your question anyhow?

"" ""



ooooooooooooooooooooooooh bugger.
 
yeah what is the question?

Known is handfull, Unknown is worldfull
 
The control <input type=&quot;file&quot; accept=&quot;&quot;>
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=&quot;&quot; attribute of the <input type=&quot;file&quot; > - 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.

 
I don't think so, but I may be wrong.

When the element is submitted, it is possible using ASP to retrieve the Content-Type,Value and Name but not the range of acceptable content types.

Since this is set by the HTML before a form is sent, Why do you need to get it back after the form is submitted. Why do you need to able to this?

BDC.
 
BDC - just old fashioned curiosity.....

thanks for the posts
 
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 [smile]

good luck and hope the info helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top