Menu

#2626 fileupload issue if the properties used without in order

5.0.6
closed-fixed
nobody
5
2011-05-06
2011-05-04
Tony Wang
No

<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

Discussion

  • Jumper Chen

    Jumper Chen - 2011-05-06

    Fixed since 2011/05/06

     
  • Jumper Chen

    Jumper Chen - 2011-05-06
    • status: open --> closed-fixed
     
  • Jumper Chen

    Jumper Chen - 2011-05-06
    • summary: fileupload issue --> fileupload issue if the properties used without in order
     

Log in to post a comment.