[Cppcms-users] [uploading file] Caught exception [File was not loaded]
Brought to you by:
artyom-beilis
|
From: Allan S. <all...@su...> - 2011-08-06 23:13:14
|
I'm trying to use the widgets::file to upload images
but when I try to have access to the uploaded file using .value, this
exception is raised
2011-08-06 23:04:31 GMT; cppcms, error: Caught exception [File was not
loaded]
I use the following code
forms::my_profile::ChangeAvatar form;
form.load(context());
if (form.avatar.validate()) {
std::istream& data = form.avatar.value()->data().seekg(0);
Thanks in advance.
Regards,
Allan
|