Prompt for Login

Explorer-like frontend add-on to upload/download.
Post Reply
krappold
Posts: 15
Joined: Mon Jun 01, 2009 4:38 pm

Prompt for Login

Post by krappold »

I have setup JDiskExplorer and set the authentication=auto.

When I try to upload, it prompts for login and pwd.

But I want it to prompt for login and pwd before that so user can see what is in remote system and download first if needed.

What controls doing it that way?

Also, the docs indicate that when the REFRESH is clicked, it will popup the login/pwd dialog. This does not seem to work. It seems to refresh but never pops up the login dialog.

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

Re: Prompt for Login

Post by support »

Do you pass empty username and password in your JavaScript ?

krappold
Posts: 15
Joined: Mon Jun 01, 2009 4:38 pm

Re: Prompt for Login

Post by krappold »

Yes, here are what I put into "applet_ftp_explorer.js" in the IE section.

I then cleared cache to make sure I got the latest.

When I click Upload, I get the logon dialog. But when I click Refresh I do not.

Also, what I really want is for the script to ask for logon before any buttons need to be clicked.

document.writeln('<PARAM NAME="authentication" VALUE="auto">');
document.writeln('<PARAM NAME="url" VALUE="ftp://herculessteelco.net">');
document.writeln('<PARAM NAME="username" VALUE="">');
document.writeln('<PARAM NAME="password" VALUE="">');

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

Re: Prompt for Login

Post by support »

Try:
document.writeln('<PARAM NAME="authentication" VALUE="auto">');
document.writeln('<PARAM NAME="url" VALUE="ftp://herculessteelco.net">');
document.writeln('<PARAM NAME="username" VALUE="test">');
document.writeln('<PARAM NAME="password" VALUE="">');

http://www.jfileupload.com/products/jdi ... aq.html#15

krappold
Posts: 15
Joined: Mon Jun 01, 2009 4:38 pm

Re: Prompt for Login

Post by krappold »

That fixed it. I missed that you had to have something in the username.

It prompts now.

Thanks

Post Reply