Page 1 of 1
How to specify the host directory to display
Posted: Mon Dec 28, 2009 2:54 am
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.
Re: How to specify the host directory to display
Posted: Mon Dec 28, 2009 10:22 am
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">
Re: How to specify the host directory to display
Posted: Mon Dec 28, 2009 2:00 pm
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.
Re: How to specify the host directory to display
Posted: Tue Dec 29, 2009 10:13 am
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.
Re: How to specify the host directory to display
Posted: Tue Dec 29, 2009 2:19 pm
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.
Re: How to specify the host directory to display
Posted: Wed Dec 30, 2009 9:38 am
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.