[Cppcms-users] cppcms::widgets::file is always not set
Brought to you by:
artyom-beilis
From: CN <cn...@gr...> - 2010-10-31 09:25:20
|
Basing on ./examples/forms/*, I use cppcms::widgets::file as follows: cppcms::widgets::text name; cppcms::widgets::file uploaded_file; cppcms::widgets::submit submit; name.non_empty(); uploaded_file.non_empty(); This is called as usual: c.info.load(context()); My problem is that c.info.validate() always returns false. Widget "name" does have been fed with string, but "uploaded_file" is always not set: std:cout << c.info.uploaded_file.value()->filename() << std::endl; raises exception "File was not loaded". Calling method cppcms::widgets::file::load() does not feed anything to itself, either: c.info.uploaded_file.load(context()); Helps are much welcome! Best Regards, CN |