Hi Parvinder,

You're not connecting to the 'uploaded()' event:
http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WFileUpload.html#aacb4622c8cd83d1635a8c0db13c8c0fe

instead of


b->clicked().connect(this, &WtWidget::populate);

maybe try:


b->clicked<http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WInteractWidget.html#ae11e050cce0d4a8f742afa3ef92bfe8c>().connect(upload,
&Wt::WFileUpload::upload<http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WFileUpload.html#ac17094f2fd6ae8cac1035161f7d80b9c>
);

upload->uploaded().connect(this, &WtWidget::populate);


that should do it :)

I think what you're doing is trying to save the file the moment they hit the
button. But you really want to save it after it has uploaded succesfully .

Kind Regards,
Matthew Sherborne

On Fri, Sep 16, 2011 at 4:20 PM, PARVINDER RAJPUT <[email protected]>wrote:

> Hello Everyone
> I made the simple program of fileUploading. I want to store the file
> in database which are upload by file Uploading. program is run
> smoothly. But file is not stored in database. Please visit the source
> code
> http://paste.ubuntu.com/690538/
> Please help me
> --
> Parvinder Rajput
> website:- www.parvinder.co.in
>
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> http://p.sf.net/sfu/rim-devcon-copy2
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to