ftp: invalid credentials

Upload core product.
Post Reply
stClem
Posts: 2
Joined: Thu Nov 06, 2008 11:32 am

ftp: invalid credentials

Post by stClem »

Get this message when i try to upload files.

Upload failed: invalid credentials

I know i have did all the changes. Tested my FTP and it works.

Code: Select all

<!--
var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
if (_info.indexOf("Opera") > 0) _ie = false;
var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
if (_ie == true) {
  document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="250" HEIGHT="250" NAME="fileupload" codebase="http://java.sun.com/update/1.4.2/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">');
}
else if (_ns == true && _ns6 == false) { 
  // BEGIN: Update parameters below for NETSCAPE 3.x and 4.x support.
  document.write('<EMBED ');
  document.write('type="application/x-java-applet;version=1.4" ');
  document.write('CODE="jfileupload.upload.client.MApplet.class" ');
  document.write('JAVA_CODEBASE="./" ');
  document.write('ARCHIVE="lib/jfileupload.jar,lib/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar" ');
  document.write('NAME="fileupload" ');
  document.write('WIDTH="250" ');
  document.write('HEIGHT="250" ');
  document.write('url="ftp://192.168.1.101" ');
  document.write('param1="opplaster" ');
  document.write('value1="anonymous" ');
  document.write('param2="opplaster" ');
  document.write('value2="mail@mail.com" ');
  document.write('param3="pasv" ');
  document.write('value3="true" ');
  document.write('mode="ftp" ');
  document.write('scriptable=true ');
  document.writeln('pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED>');
  // END
}
else {
  document.write('<APPLET CODE="jfileupload.upload.client.MApplet.class" JAVA_CODEBASE="./" ARCHIVE="lib/jfileupload.jar,lib/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar" WIDTH="250" HEIGHT="250" NAME="fileupload">');
}
// 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://192.168.1.101">');
document.writeln('<PARAM NAME="param1" VALUE="opplaster>');
document.writeln('<PARAM NAME="value1" VALUE="anonymous">');
document.writeln('<PARAM NAME="param2" VALUE="opplaster">');
document.writeln('<PARAM NAME="value2" VALUE="mail@mail.com">');
document.writeln('<PARAM NAME="param3" VALUE="pasv">');
document.writeln('<PARAM NAME="value3" VALUE="true">');
document.writeln('<PARAM NAME="mode" VALUE="ftp">');
// END
if (_ie == true) {
  document.write('</OBJECT>');
}
else if (_ns == true && _ns6 == false) {
  document.write('</NOEMBED></EMBED>');
}
else {
  document.write('</APPLET>');
}
//-->

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: ftp: invalid credentials

Post by support »

login/password have to be in valueX. So if you're FTP login/password is opplaster/mail@mail.com then you must setup:
<PARAM NAME="param1" VALUE="username>
<PARAM NAME="value1" VALUE="opplaster">
<PARAM NAME="param2" VALUE="password">
<PARAM NAME="value2" VALUE="mail@mail.com">

Does it help ?

stClem
Posts: 2
Joined: Thu Nov 06, 2008 11:32 am

Re: ftp: invalid credentials

Post by stClem »

my username and password is opplaster. No its not working.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: ftp: invalid credentials

Post by support »

So, you have to setup:
<PARAM NAME="param1" VALUE="username>
<PARAM NAME="value1" VALUE="opplaster">
<PARAM NAME="param2" VALUE="password">
<PARAM NAME="value2" VALUE="opplaster">

Then close all browser windows (to make sure the applet is unloaded) and try again.

Post Reply