this.setNumFields(numfields+1); this.setNumFields(numfields-1); 0) if(num > numfields){ for(var i=numfields;i=0;i--){ if(content.subviews[i].selected==false){ content.subviews[i].destroy(); kill++; } } if(kill>count){ for(var i=0;i=numfields-count;i--){ content.subviews[i].destroy(); } } this.setAttribute('numfields',num); } ]]> A swf-specific class for uploading multiple files to a server

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.