Page 1 of 1

Upload locks up

Posted: Fri Jun 20, 2008 8:05 pm
by GJohn600
Hi
I am a newbie but I have a problem and I'm not sure where to start. I am trying out JFileUpload to incorporate into our website so that customers can easily transfer their files. I have it installed and from my computer, I am able to pull up the page and see the applet load. So far, I have uploaded many files of different size and type without any issues. But I sent a link to various people in our office to try it. Some it worked fine. Others could open the page and have the applet load. When they would drag and drop a file, it would ask for the password, then say that the upload has started but then it would freeze up. There would be no progress on the upload.
Can someone give me a place to start? Does it sound more like a workstation issue or a parameter not set correctly. Everyone in the office is running Win XP and IE6

Thank you for your time

Re: Upload locks up

Posted: Fri Jun 20, 2008 8:34 pm
by support
Did you protect the page that load the applet ? Do you have any proxy ?

Re: Upload locks up

Posted: Fri Jun 20, 2008 9:02 pm
by GJohn600
Thanks for the reply. We are not going through a proxy. The page is the sample page that came with the download (applet_ftp.html). I have copied the parameters below from applet_ftp.js. I haven't changed the Netscape section yet.

}
// BEGIN: Update parameters below for INTERNET EXPLORER, FIREFOX, SAFARI, OPERA, MOZILLA, NETSCAPE 6+ support.
document.writeln('<PARAM NAME=CODE VALUE="jfileupload.upload.client.MApplet.class">');
document.writeln('<PARAM NAME=CODEBASE VALUE="./">');
document.writeln('<PARAM NAME=ARCHIVE VALUE="lib/jfileupload.jar,lib/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar">');
document.writeln('<PARAM NAME=NAME VALUE="fileupload">');
document.writeln('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">');
document.writeln('<PARAM NAME="scriptable" VALUE="true">');
document.writeln('<PARAM NAME="url" VALUE="ftp://ftp.ourdomain.com">');
document.writeln('<PARAM NAME="param1" VALUE="username">');
document.writeln('<PARAM NAME="value1" VALUE="ourusername">');
document.writeln('<PARAM NAME="param2" VALUE="password">');
document.writeln('<PARAM NAME="value2" VALUE="">');
document.writeln('<PARAM NAME="param3" VALUE="pasv">');
document.writeln('<PARAM NAME="value3" VALUE="false">');
document.writeln('<PARAM NAME="mode" VALUE="ftp">');
document.writeln('<PARAM NAME="authentication" VALUE="auto">');
document.writeln('<PARAM NAME="resume" VALUE="true">');
document.writeln('<PARAM NAME="resources" VALUE="i18n">');
document.writeln('<PARAM NAME="username" VALUE="ourusername">');
document.writeln('<PARAM NAME="password" VALUE="password">');

Thanks again for your time.

Re: Upload locks up

Posted: Sat Jun 21, 2008 7:54 am
by support
You've entered username/password twice. Once as regular parameter and another with extra parameter. And there are not the same. Please use only one of them, for instance,

remove:
document.writeln('<PARAM NAME="username" VALUE="ourusername">');
document.writeln('<PARAM NAME="password" VALUE="yourpassword">');

keep:
document.writeln('<PARAM NAME="param1" VALUE="username">');
document.writeln('<PARAM NAME="value1" VALUE="ourusername">');
document.writeln('<PARAM NAME="param2" VALUE="password">');
document.writeln('<PARAM NAME="value2" VALUE=""yourpassword>');