JDiskExplorer - Questions/Answers

Explorer-like frontend add-on to upload/download.
Post Reply
User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

JDiskExplorer - Questions/Answers

Post by support »

> I can not add more files to the queue when the script sends the files.
No, once upload is started you cannot add more until end of transfer.

> Is it possible to script post method (write to the database file
> upload time) after every file that is sent from the queue?
Yes, for upload add:
<PARAM NAME="status" VALUE="http://yourserver.com/script.php">

> I can not open the file in the local window by double-clicking on it -
> pdf file. I know that it is possible to open a file from the popup
> menu.
Yes, make sure the following in i18n_pane.properties are uncommented:
popup.open=Open
popup.open.error=Cannot open file {0}
You can see online demo at:
http://www.jfileupload.com/products/dem ... lorer.html

> After sending the file to the name I put "OK" (layout option).
> However, change the file name is also done when the sending is
> interrupted ...
Are you using FTP or HTTP upload? Are you using overwrite parameter?

> How the finished sending refresh the page by AJAX (not FORWARD)?
> I want to download new data from the database using AJAX and display
> it in the control html.
You have either:
<PARAM NAME="post" VALUE="http://yourserver.com/script.php">
or JSAPI fo JavaScript notification:
http://www.jfileupload.com/products/tools/index.html
http://www.jfileupload.com/products/dem ... jsapi.html

zboina
Posts: 5
Joined: Thu Aug 23, 2012 11:32 am

Re: JDiskExplorer - Questions/Answers

Post by zboina »

Thank you very much for answering my questions.

Unfortunately, not everything works ...

>> Yes, for upload add:
<PARAM NAME="status" VALUE="http://yourserver.com/script.php">
I added this parameter. But the script does not execute after sending
each file in the queue.

>> Yes, make sure the Help Us in i18n_pane.properties are uncommented:
popup.open >> = Open
popup.open.error >> = Can not open file {0}
So does the popup menu. You can not open the file by double-clicking the mouse?

Are you using >> FTP or HTTP upload? Are you using overwrite parameter?
I use FTP (JFileUpload + JDiskExplorer)
I do not use overwrite parameter...???

JSAPI fo >> JavaScript or notification:
Thank you for this tip. Unfortunately JSTransferCompleted function
does not work ...

I send my script settings (for FireFox)

Code: Select all


            document.write('<APPLET
CODE="jfileupload.upload.client.MApplet.class" JAVA_CODEBASE="./"
ARCHIVE="/lib/jfileupload.jar,/lib/ftpimpl.jar,/lib/cnet.jar,/lib/clogging.jar,/lib/jsapi.jar,/lib/explorerui.jar"
WIDTH="640" HEIGHT="480" 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,/lib/jsapi.jar,/lib/explorerui.jar">');
        document.writeln('<PARAM NAME=NAME VALUE="fileupload">');
        document.writeln('<PARAM NAME="type"
VALUE="application/x-java-applet;version=1.6">');
        document.writeln('<PARAM NAME="scriptable" VALUE="true">');
        document.writeln('<PARAM NAME="mayscript" VALUE="true">');
        document.writeln('<PARAM NAME="url" VALUE="adress/">');
        document.writeln('<PARAM NAME="username" VALUE="user">');
        document.writeln('<PARAM NAME="password" VALUE="pass">');
        document.writeln('<PARAM NAME="param3" VALUE="pasv">');
        document.writeln('<PARAM NAME="value3" VALUE="true">');
        document.writeln('<PARAM NAME="param4" VALUE="relativefilename">');
        document.writeln('<PARAM NAME="value4" VALUE="true">');
        document.writeln('<PARAM NAME="param5" VALUE="ftpsession">');
        document.writeln('<PARAM NAME="value5" VALUE="true">');
        document.writeln('<PARAM NAME="startdir" value="dir">');
        document.writeln('<PARAM NAME="authentication" VALUE="auto">');
        document.writeln('<PARAM NAME="concurrency" VALUE="1">');
        document.writeln('<PARAM NAME="folderdepth" VALUE="-1">');
        document.writeln('<PARAM NAME="resume" VALUE="true">');
        document.writeln('<PARAM NAME="sm" VALUE="enabled">');
        document.writeln('<PARAM NAME="resources" VALUE="i18n_bar">');

        document.writeln('<PARAM NAME="param6" VALUE="account">');
        document.writeln('<PARAM NAME="value6" VALUE="subdir">');

        document.writeln('<PARAM NAME="template"
VALUE=":name:_OK:extension:">');
        document.writeln('<PARAM NAME="transferui"
VALUE="jfileupload.transfer.client.explorer.ExplorerTransferUI">');
        document.writeln('<PARAM NAME="resources" VALUE="i18n_bar">');
        document.writeln('<PARAM NAME="transferuiresources"
VALUE="i18n_pane">');
        document.writeln('<PARAM NAME="mode" VALUE="ftp">');
        document.writeln('<PARAM NAME="postparameters" VALUE="short">');

       //document.writeln('<PARAM NAME="status" VALUE="http://script.php">');

        document.writeln('<PARAM NAME="post" VALUE="http://script.php">');


        // END

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

Re: JDiskExplorer - Questions/Answers

Post by support »

Could you enable debug mode with:
<PARAM NAME="verbosemode" VALUE="debug">
and see if it reports some HTTP POST request after each file uploaded?

For open it's from pop-up, not with double click.

Post Reply