hi, all
the definition of WFileUpload::isUploaded() is:

              bool isUploaded() const { return fileUploadTarget_ != 0; }

but the comments of it are:

                     Check with
isUploaded()<file:///home/cx/software/wt-2.99.1/doc/reference/html/classWt_1_1WFileUpload.html#ba40acced8b3ab758f53d17f15afcf38>if
upload()<file:///home/cx/software/wt-2.99.1/doc/reference/html/classWt_1_1WFileUpload.html#c17094f2fd6ae8cac1035161f7d80b9c>will
schedule a new upload. if (
isUploaded()<file:///home/cx/software/wt-2.99.1/doc/reference/html/classWt_1_1WFileUpload.html#ba40acced8b3ab758f53d17f15afcf38>)
then 
upload()<file:///home/cx/software/wt-2.99.1/doc/reference/html/classWt_1_1WFileUpload.html#c17094f2fd6ae8cac1035161f7d80b9c>will
no have any effect.
                     if (!isUploaded()),
upload()<file:///home/cx/software/wt-2.99.1/doc/reference/html/classWt_1_1WFileUpload.html#c17094f2fd6ae8cac1035161f7d80b9c>will
start and end when either of the two
uploaded()<file:///home/cx/software/wt-2.99.1/doc/reference/html/classWt_1_1WFileUpload.html#acb4622c8cd83d1635a8c0db13c8c0fe>or
fileTooLarge()<file:///home/cx/software/wt-2.99.1/doc/reference/html/classWt_1_1WFileUpload.html#29dc78a0162c676f7b72904d595440d8>signals
gets emitted.

It seems does not work right.

I think the right is:

              bool isUploaded() const { return fileUploadTarget_ == 0; }

Regards
zhimin
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to