Get total size of selection in JavaScript callback

Enhanced frontend add-on to queue files.

Get total size of selection in JavaScript callback

Postby support » Wed Mar 31, 2010 7:19 pm

JBatchUpload can return amount of files selected and total size in a JavaScript callback.
To enable this feature:
1 - Uncomment the following line in i18n_pane.properties
Code: Select all
#js.notification.selection=JSSelectionInfo


2 - Install JSAPI and plug JBatchUpload to applet_http_jsapi.js
You need to add batchui.jar to all ARCHIVE parameters.
You also need to add JBatchUpload parameters such as transferui, transferuiresources ...
http://www.jfileupload.com/products/tools/index.html

3 - Add the following JavaScript function into applet_http_jsapi.html:
Code: Select all
function JSSelectionInfo(amount, size)
{
    // You have amount of files selected and full size in parameters.
}
User avatar
support
 
Posts: 1398
Joined: Sun Jan 27, 2008 6:19 pm

Return to JBatchUpload




Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.