XUpload - Intermittent problems with Firefox

Message
Author
hanji
Posts: 36
Joined: Nov 10, 2006 3:33 am

Intermittent problems with Firefox

#1 Postby hanji » Nov 13, 2006 3:29 am

Hello

I'm noticing a strange problem where after the upload is done (in firefox) the browser will hang. A browser pop up will display the following message:
"A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete."
If I click 'Stop Script' I'll be directed to my POST, but if I click 'Continue' this process will repeat itself.

I've tried this with a 1 byte, 1KB and 3MB files. the 1 byte and 3MB files triggered this error, but the 1KB file was fine.

I'm using XUploadPro-2.2 and my firefox version (just recently upgraded) is:

Code: Select all

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8
Any help is greatly appreciated.

Thanks!
hanji

hanji
Posts: 36
Joined: Nov 10, 2006 3:33 am

#2 Postby hanji » Nov 14, 2006 9:43 pm

This problem persists with XUploadPro-2.3. Here is a screen snap

http://www.uno-code.com/images/firefoxError.gif

Thanks!
hanji

hanji
Posts: 36
Joined: Nov 10, 2006 3:33 am

#3 Postby hanji » Nov 14, 2006 10:12 pm

I was also able to reproduce this on the demo site:
http://www.sibsoft.net/upload_form_pro.html

Screen snap is here:
http://www.uno-code.com/images/firefoxError2.gif

Thanks!
hanji

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Nov 15, 2006 8:28 am

Interesting...This happens after upload is Complete?
Can you email or PM me the inline window 'View Source' please?

hanji
Posts: 36
Joined: Nov 10, 2006 3:33 am

#5 Postby hanji » Nov 15, 2006 2:01 pm

Hello

I'm unable to view the source of the inline progress bar.. just the main upload form:

Code: Select all

<HTML>
<HEAD>
<Title>XUpload form</Title>
<Style>
FIELDSET {width: 400px; xbackground-color: #f9f9f9; border: 1px solid #b3b3b3; font: 13px Arial; text-align: left;}
LEGEND   {background-color: #f0f0f0; border: 1px solid #b3b3b3; font: bold 13px Arial; padding: 2px;}
.div1, .file_list {text-align: left; color: #484B50; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;}
.div1 {width: 100%; padding: 10px;}
.upload_input input {font: 12px Arial; border: 1px solid #636363; margin-top: 1px; width: 100%;}
.file_list {width: 100%; border: 1px solid #434343; background-color: #ffffff;}
.file_list input {font: 12px Arial; border: 1px solid #c3c3c3; margin-top: 1px;}
.myForm {font: 12px Arial; border: 1px solid #636363; margin-top: 1px;}
.fdescr {width: 300px;}
.xfname  {color: #333;}
.xdescr  {color: #aaa;}
</Style>
</HEAD>
<BODY>
<Center>
<br><br>
<form name="F1Upload" enctype="multipart/form-data" action="/cgi-bin/xuploadpro/upload.cgi?upload_id=" method="post" onSubmit="return StartUpload(this);">
<input type="hidden" name="xmode" value="1">
<FIELDSET>
<LEGEND>XUpload PRO Demo</LEGEND>
<table cellpadding=0 cellspacing=0 class="div1" id="div1"><tr><td>

<div class="upload_input"><input id="my_file_element" type="file" name="file_1"></div>

<Table class="file_list"><TR><TD nowrap>
<b><font id='x_max_files'>1</font> files<font id='x_max_size'></font> maximum</b><br>
<div id="files_list" style="font: 12px Arial;"></div>
</TD></TR></Table>

<br>

Password: <input type="password" name="upload_password" size=32 class="myForm"><br><br>

<Input type="checkbox" name="popup" id="popup"><label FOR="popup" ACCESSKEY="Z">Show upload status in pop-up</label><br>
<Input type="checkbox" name="inline" id="inline"><label FOR="inline" ACCESSKEY="X">Show upload status on this page</label><br>
<Input type="checkbox" name="inline2" id="inline2"><label FOR="inline2" ACCESSKEY="C">Show upload status inside this table</label><br>
<br>
<center><input type="submit" value="Upload Files" class="myForm"></center>
<br>
</td></tr></table>
</FIELDSET>

<input type="hidden" name="css_name" value="hitech">
<input type="hidden" name="tmpl_name" value="hitech">
</form>

</Center>


<iframe src="about:blank" name="upload" frameborder=0 style="width: 0px; height: 0px;z-index: 182;"></iframe>
<script>document.write('<script src="' + document.F1Upload.action+'&mode=settings' + '&xmode=' +document.F1Upload.xmode.value+ '" type="text/javascript"><\/script>');</script>
<script src="xupload2.js"></script>

</BODY>
</HTML>
I can get this to happen every time with the following file using your demo and Firefox

Code: Select all

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8
File:
http://www.uno-code.com/images/59_LP.jpg

Code: Select all

File info after upload is complete:
file_0 => 59_LP3.jpg
file_0_original => 59_LP.jpg
file_0_status => renamed
file_0_size => 1169891
file_0_description =>
target_dir => /tmp
number_of_files => 1
ip => xxx.xxx.xxx.xxxx
host => somthing.domain.com
duration => 34
Thanks!
hanji

hanji
Posts: 36
Joined: Nov 10, 2006 3:33 am

#6 Postby hanji » Nov 15, 2006 2:08 pm

If I edit the Firefox config (type about:config in the address bar), and change the value for dom.max_script_run_time to 120 (up from 20), I will not get the error message prompt. The behaviour is still odd though. It will hang for a number of seconds after the file has completed the upload, then POST to post.php. I would estimate that the hang was for at least 10 seconds before going to post.php using the same image file I provided earlier.

Thanks!
hanji