0

Hi,
I want to upload file. but when I use<input type="file" runat="server"> & with one button.
when I click on button then my page cannot be found.
such type of error occured. means when I add that input type file tag that error occured.

5
Contributors
7
Replies
8
Views
7 Years
Discussion Span
Last Post by sakhi kul
0

have u tried enctype="multipart....?

<form action="/example/UploadImage" method="post" [B]enctype="multipart/form-data"[/B] 
           name="form1" id="productForm" onsubmit="return update();">
0

well Mr. can you me the size of your file...which you are trying to upload..

if your file size is above 4 MB then i have the solution...

0

I have word document to upload & now It shows me error that "Cannot find server or DNS Error"
shall I need to change web.config file..?

0

This error might be accure by varios reasons.

1. Check whether you are trying to upload a document with size more than 4 MB. Refer this link.
2. Also check the size of the ViewState of your page. If the ViewState has a larger size, it might cause this error to occur. Check this thread.

Also check your network connectivity.

0

Thanks to all,
I used fileupload control & in webconfig file I simply add <httpRuntime maxRequestLength ="45600"/>
& Finally I can upload files without any error.

Thanks!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.