Second, you need to declare the two filters in applet javascript file:
Code: Select all
...
<PARAM NAME="resources" VALUE="i18n">
<PARAM NAME="additionalfilterid" VALUE="medium,small">
<PARAM NAME="mediumfilter" VALUE="jfileupload.upload.client.filter.ImageFilter">
<PARAM NAME="mediumfilterproperties" VALUE="scaling_medium.properties">
<PARAM NAME="smallfilter" VALUE="jfileupload.upload.client.filter.ImageFilter">
<PARAM NAME="smallfilterproperties" VALUE="scaling_small.properties">
Finally, you need to setup a custom rename policy to avoid file overwrite:
<PARAM NAME="mediumfilterparam2" VALUE="renamepolicy">
<PARAM NAME="mediumfiltervalue2" VALUE="custom">
<PARAM NAME="mediumfilterparam3" VALUE="id">
<PARAM NAME="mediumfiltervalue3" VALUE="thumb_640_480_">
<PARAM NAME="smallfilterparam2" VALUE="renamepolicy">
<PARAM NAME="smallfiltervalue2" VALUE="custom">
<PARAM NAME="smallfilterparam3" VALUE="id">
<PARAM NAME="smallfiltervalue3" VALUE="thumb_160_120_">