<multiplefileupload>
A swf-specific class for uploading multiple files to a server

JavaScript: lz.multiplefileupload
extends <view> » <node> » lz.Eventable »

A class for uploading a single file using the Flash file upload api. This only works with the swf runtime, that is, with lzr=swf10.

Using this class requires a service to which to upload. A sample upload jsp is provided, which uses the cos.jar library from servlets.com. To use the example, copy cos.jar from servlets.com into $TOMCAT_HOME/common/lib and rename lps/components/incubator/uploader/example/upload.jsp.txt to upload.jsp. Restart tomcat, so it will see the new jar, then visit http://localhost:8080/legals/lps/components/incubator/uploader/example/test-multiplefileupload.lzx?lzr=swf10

(The terms of the servlets.com license forbid it from being redistributed with OpenLaszlo.)

To upload a single file, see <fileupload>.

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
erroroccured boolean boolean false read/write
  Error occured
numfields expression any 1 read/write
  numbers of fileuploadlist

Methods

addField()
multiplefileupload.addField();
add one file upload field

checkError()
multiplefileupload.checkError();
check if there were any errors in these file upload fields

clearAllFields()
multiplefileupload.clearAllFields();
clear all selected file fields

removeField()
multiplefileupload.removeField();
remove one file upload field, and sort selected files to top

setNumFields()
multiplefileupload.setNumFields(num);
Set number of field upload fields and sort selected files to top
Parameter Name Type Description
num    

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy