How to specify the host directory to display

Explorer-like frontend add-on to upload/download.
Post Reply
onyii5119
Posts: 19
Joined: Sun Dec 20, 2009 6:27 pm

How to specify the host directory to display

Post by onyii5119 »

I want to use JDiskExplorer to allow a user download files from the host. How do I specify the host directory the user can download files from? Each time I try to run JDiskExplorer, I get an empty host panel (no files listed for the host).

I am using HTTP protocol.

Thanks.

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

Re: How to specify the host directory to display

Post by support »

First, did you install explorer.php (or explorer.jsp) on server-side ? Also, did you add the "include" line in process.php (or process.jsp) ?
Second, did you setup upload directory in process.php (or process.jsp) ?
Finally, to setup a "user1" folder relative to upload directory use:
<PARAM NAME="param5" VALUE="account">
<PARAM NAME="value5" VALUE="user1">

onyii5119
Posts: 19
Joined: Sun Dec 20, 2009 6:27 pm

Re: How to specify the host directory to display

Post by onyii5119 »

I did everything but was getting the following in the status line:
"Cannot change directory to /"

What causes this message to be displayed?

Thanks.

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

Re: How to specify the host directory to display

Post by support »

Could you send a testing URL to support(at)jfileupload(dot)com ?
This error means that there is a problem with explorer.php integration.

onyii5119
Posts: 19
Joined: Sun Dec 20, 2009 6:27 pm

Re: How to specify the host directory to display

Post by onyii5119 »

Thanks. I am currently testing with localhost.

Which condition in explorer.jsp triggers the message:
"Cannot change directory to /"?

This might help me debug the code. I am using servlets instead of process.jsp and explorer.jsp. Since explorer.jsp is included in process.jsp, I had to combine both in my servlet. Any pointers to debugging the problem would help.

Thanks.

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

Re: How to specify the host directory to display

Post by support »

The applet sends a custom command to change directory. This command is handled in explorer.jsp. If it does not return as expected then it displays this error message. Why not use process.jsp + explorer.jsp just for testing and make sure it works ? Then move the code to servlet.

Post Reply