File upload using HTML file type.

Posted by vaibhav on Stack Overflow See other posts from Stack Overflow or by vaibhav
Published on 2010-06-11T11:59:01Z Indexed on 2010/06/11 12:02 UTC
Read the original article Hit count: 276

Filed under:
|
|

I want to upload a file on my aspx page.

I am using

<form id="frmId" method="post" enctype="Multipart/form-data">
<input type="file" id="file1"/>
<input type="submit" id="btnsubmit"/>
</form>

and in code behind I am trying to get this file. Its not letting me to get the file until I use server side input file control. I don't want to use runat="server" attribute with my file control.

Do anyone know how to do this.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about html