Welcome Guest Search | Active Topics | Sign In | Register

Problem whith AJAXUPLOADER Options
houmandco
Posted: Wednesday, January 11, 2012 11:27:41 AM
Rank: Newbie
Groups: Member

Joined: 1/5/2012
Posts: 4
Hi.

I use AJAXUPLOADER to upload large files (900Mb)
Everything work corectly whith internal access , but from the outside so at a rate much lower
the progress bar freezes (+-30%, but progress in the status bar of the browser continues) while the upload continuously.
If I wait the end of the upload, the final file is not created.

(The problem occurs before the end of the timeout defined in web.config, a work whith IIS7.5-Framework4.0 and vb.net)


Do you have an idea of the problem?
eo_support
Posted: Wednesday, January 11, 2012 12:42:43 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

This may still be a time out problem. You can try two things:

1. Check your IIS log/event viewer to see whether you can find any additional error message;
2. Try to use a simple HTML file input element (do not use ASP.NET FileUpload) to upload the same file and see if it succeeds. If that can not go through, there it would be a problem on your server;

Thanks!
houmandco
Posted: Thursday, January 12, 2012 7:33:27 AM
Rank: Newbie
Groups: Member

Joined: 1/5/2012
Posts: 4
There is nothing in the logs off iis for an exeption or error.
the freezing of the progress bar almost always occurs at 200 seconds.
The following code works corect with the same files:


<%@ Page Language="VB" %>
<script runat="server">

Protected Sub Button1_Click(ByVal sender As Object, _
ByVal e As System.EventArgs)
If FileUpload1.HasFile Then
Try
FileUpload1.SaveAs("d:\" & _
FileUpload1.FileName)
Label1.Text = "File name: " & _
FileUpload1.PostedFile.FileName & "<br>" & _
"File Size: " & _
FileUpload1.PostedFile.ContentLength & " kb<br>" & _
"Content type: " & _
FileUpload1.PostedFile.ContentType
Catch ex As Exception
Label1.Text = "ERROR: " & ex.Message.ToString()
End Try
Else
Label1.Text = "You have not specified a file."
End If
End Sub

</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Upload Files</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:FileUpload id="FileUpload1" runat="server"></asp:FileUpload>
<br />
<br />
<asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Upload File"></asp:Button>
&nbsp;<br />
<br />
<asp:Label id="Label1" runat="server"></asp:Label>
</div>
</form>
</body>
</html>
houmandco
Posted: Thursday, January 12, 2012 7:40:23 AM
Rank: Newbie
Groups: Member

Joined: 1/5/2012
Posts: 4
If I wait the end of page load despite the freezing of the progress bar, the size of the temporary file created corespont the size of the uploaded file, but after the code is not running.
eo_support
Posted: Thursday, January 12, 2012 9:42:54 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Do you have a loader balancer and multiple servers? We can not think of any reason that can cause the progress bar to stop except for that case. It does make sense that once the progress bar stops, the AJAXUploader will never realize that the actual upload is already done even if the temp file was correctly created.

If you have multiple servers, then you must make sure that all requests originated from the same session is directed to the same server. If you only have one server, then what we can do is to add some debug code and then test it on your server. You will need to setup a test app for us and give us FTP access to that test app so that we can add debug code, upload it, run it, analyze the result, etc.

Thanks!
houmandco
Posted: Thursday, January 12, 2012 10:35:32 AM
Rank: Newbie
Groups: Member

Joined: 1/5/2012
Posts: 4
No balancing web servers configured, the server is a single machine to which the ports are redirected through a linux firewall.
I agree to give you access to the site problematic and create a ftp access, but I need your ip to secure access.
eo_support
Posted: Thursday, January 12, 2012 10:45:16 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You might want to temporarily turn off or bypass your firewall just to test whether that has anything to do with this. The way the uploader works is to have a single request that sends the file over (which would take a long time), and while the file is being uploaded, it repeatly sends AJAX requests to the server to fetch the current progress. Your firewall might see these repeated requests as some sort of robot attack or something and decided to cut it off.

We will PM you our IP address.

Thanks!
MOF
Posted: Monday, January 16, 2012 6:54:06 AM
Rank: Newbie
Groups: Member

Joined: 1/16/2012
Posts: 2
hi

i wanna change save the file that User uploaded in another name on the server!but hoW ?when I should get the file name and change it to store on server ... pls reply me it's so important 4 me. tq guys.
eo_support
Posted: Monday, January 16, 2012 9:11:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
MOF wrote:
hi

i wanna change save the file that User uploaded in another name on the server!but hoW ?when I should get the file name and change it to store on server ... pls reply me it's so important 4 me. tq guys.


To MOF:

Please start a new thread and repost your question in the new thread. Your question is totally unrelated to this thread. Questions completely unrelated to a thread about another question will be deleted.

Thanks!
MOF
Posted: Monday, January 16, 2012 9:20:08 AM
Rank: Newbie
Groups: Member

Joined: 1/16/2012
Posts: 2
To eo_support :
hi
I want to change the name of the file that user try to upload , then save that on the server with Ajax Uploader.
how should i handle this ?
eo_support
Posted: Monday, January 16, 2012 9:25:36 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
To MOF:

We have suspended your account. We have warned you previously do not post your question in an unrelated thread, yet you responded by reposting the same question in the same thread. If you do not wish to follow the rules, then you are not welcome here and you should go elsewhere.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.