<zk>
<window>
<vlayout>
<label id="lab"/>
<button label="Upload 1" upload="true,maxsize=-1" onUpload="myProcessUpload(event.getMedia())" />
<fileupload label="Upload 2" upload="true,maxsize=-1" onUpload="myProcessUpload(event.getMedia())" />
<button label="Upload fail 1" upload="maxsize=-1,true" onUpload="myProcessUpload(event.getMedia())" />
<fileupload label="Upload fail 2" upload="maxsize=-1" onUpload="myProcessUpload(event.getMedia())" />
</vlayout>
<zscript><![CDATA[
void myProcessUpload(org.zkoss.util.media.AMedia media) throws Exception {
lab.setValue("myProcessUpload " + media.getName());
}
]]></zscript>
</window>
</zk>
please check line 257 and line 260
for 257, use startWith, it is wrong if i use upload to set native or max in <fileupload>, i will not set true at the begining.
for 260, I think it is typo.
please check line 257 and line 260 in file Upload.js
--
Reported by Dennis
Fixed since 2011/05/06