Stalled

XUpload related questions

Moderator: admin

Message
Author
azvisual
Posts: 34
Joined: May 23, 2007 9:05 pm

Stalled

#1 Postby azvisual » May 29, 2007 11:47 pm

Anyone experience "stalls" when submitting to CGI scripts? I've tried on 3 or 4 servers now and I still get this from time to time...

I'll hit submit, the progress bar shows up, nothing ever happens. It just sits. I see this more and more and wonder if this is a CGI thing that I can fix.

Thanks for any suggestions. (and I did all the htaccess stuff to no avail)

User avatar
PilgrimX182
Posts: 2181
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » May 30, 2007 5:57 am

Are you testing on big files? Windows or Linux? Check for Javascript errors. Can you provide me with URL to your upload form?

azvisual
Posts: 34
Joined: May 23, 2007 9:05 pm

#3 Postby azvisual » May 30, 2007 2:03 pm

Testing with smaller files, but it happens sporadically. Size of file doesn't seem to matter. Most of the time the script just goes, but maybe 1 out of 10 or 15 times it will just sit there after displaying the progress bar. It's a Linux server. Feel freed to submit the form with any size file you need. It's not live and all emails go to me.

http://www.printwestern.com/xupload/upload_form.html

User avatar
PilgrimX182
Posts: 2181
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#4 Postby PilgrimX182 » May 31, 2007 6:52 am

Well....:) first of all it doesn't work at all...loading Settings JavaScript from wrong URL....looks you've made your own modifications in xupload.js

Remove your "../upload/" from this line:

Code: Select all

<script src="../upload/' + form_action

azvisual
Posts: 34
Joined: May 23, 2007 9:05 pm

#5 Postby azvisual » May 31, 2007 5:07 pm

Ok, very confused. I don't recall putting that there (but it is not in the original so I had to have) and I don't know why I would have done that. Anyways, the form worked for me before the change, as well as after, so what is this change doing anyways?

Will this help with the stalling issue I was having?

Thanks for looking into this for me.

User avatar
PilgrimX182
Posts: 2181
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#6 Postby PilgrimX182 » Jun 01, 2007 5:21 am

Now works fine. About stall problem....probably this happens on long uploads and maybe Apache close persistent connection somehow by timeout or something. You should try to enable AJAX update mode. Set ajax_mode to 1 in config. Should reallly help.

azvisual
Posts: 34
Joined: May 23, 2007 9:05 pm

#7 Postby azvisual » Jun 01, 2007 2:08 pm

So a new issue has occurred. When I click stop to abort the upload I get a javascript error.

I get "jah error:undefined"

I have replaced xupload.js with a clean version from the archive and it still persists.

Any ideas? This is in Safari, haven't tried other browsers.

User avatar
PilgrimX182
Posts: 2181
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#8 Postby PilgrimX182 » Jun 04, 2007 8:20 am

In xupload.js remove line

Code: Select all

alert("jah error:"+req.statusText);

azvisual
Posts: 34
Joined: May 23, 2007 9:05 pm

#9 Postby azvisual » Jun 04, 2007 3:25 pm

I've removed the line from the xstatus.js (not xupload.js) and that fixes that problem.

Thanks


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 0 guests