|
Rank: Newbie Groups: Member
Joined: 12/19/2011 Posts: 2
|
Hi I get the timeout error when trying to upload a 20mb file, but smaller files work. I've checked the web.config configuration but since it replaces the ASP.net fileupload which still works fine in the same environment, I don't know what is wrong with my code. Here is what I have
Code: HTML/ASPX
<eo:AJAXUploader runat="server" ID="AJAXUploader1" Width="520px" TempFileLocation="~/eo_upload"
autopostback="true" OnFileUploaded="AJAXUploader1_FileUploaded">
<LayoutTemplate>
<table cellspacing="0" cellpadding="2" width="520" border="0">
<tr>
<td colspan="3">
<asp:PlaceHolder ID="PostedFilesPlaceHolder" runat="server">Posted Files Place Holder
</asp:PlaceHolder>
<asp:Button ID="DeleteButton" runat="server" Text="Delete Selected Files"></asp:Button>
<p>
</p>
</td>
</tr>
<tr>
<td width="99%">
<asp:PlaceHolder ID="InputPlaceHolder" runat="server">Input Box Place Holder</asp:PlaceHolder>
</td>
<td>
<asp:Button ID="UploadButton" runat="server" Text="Upload"></asp:Button>
</td>
<td>
<eo:ProgressBar ID="ProgressBar" runat="server" ControlSkinID="None" Height="18px" ShowPercentage="true"
Width="150px" BorderColor="#336699" BorderStyle="Solid" BorderWidth="1px" IndicatorColor="151, 198, 232">
</eo:ProgressBar>
</td>
</tr>
</table>
</LayoutTemplate>
</eo:AJAXUploader>
config
Code: Visual Basic.NET
<httpRuntime requestValidationMode="2.0" maxRequestLength="2000000000" executionTimeout="24000" shutdownTimeout="24000" ></httpRuntime>
<pages validateRequest="false"/>
<httpModules>
<add name="EOWebRuntime" type="EO.Web.Runtime,EO.Web" />
</httpModules>
<trace enabled="false" />
<requestLimits maxAllowedContentLength="2000000000"/>
thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Your code looks correct. You might want to check your IIS log to see why it can not come through. Time out error is almost always caused by some settings on your server that intentionally blocks/drops certain request.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 12/19/2011 Posts: 2
|
Would using URLrewriting cause a problem? Also, I use requestfiltering to protect against SQL Injection. I just have it strange that if I use
Code: HTML/ASPX
<asp:FileUpload ID="FileUpload1" runat="server" class="multi" />
<br />
<asp:Button ID="btnUpload" runat="server" Text="Upload All"
onclick="btnUpload_Click" />
Code: Visual Basic.NET
Try
' Get the HttpFileCollection
Dim hfc As HttpFileCollection = Request.Files
For i As Integer = 0 To hfc.Count - 1
Dim hpf As HttpPostedFile = hfc(i)
If hpf.ContentLength > 0 Then
hpf.SaveAs(Server.MapPath("/customer_files/teamsite/library/Clients/" & foldername) & "\" & System.IO.Path.GetFileName(hpf.FileName))
End If
Next i
Catch ex As Exception
End Try
it works. Doesn't the Ajaxuploader work the same way?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The only thing about this is certain requests have been blocked/droped by your server. Whether this is due to an IIS setting, a request filtering, or an incorrect Url rewrite rule we would have no way of knowing. So This is something you will need to figure out.
Thanks
|
|