Re: [Cppcms-users] Advice on debugging file upload
Brought to you by:
artyom-beilis
From: doug l. <bi...@gm...> - 2012-04-23 19:14:01
|
Ah, so it looks like my issue is something else -- my form isn't even getting loaded. For completeness, I have a simple context object: https://github.com/biot023/improc/blob/master/content.h And I have a simple server: https://github.com/biot023/improc/blob/master/imageserver.cpp#L32 And I'm testing the server with this call to cURL: $ curl localhost:8080/imageserver/abc -F file=@features/fixtures/img01.jpg -F key=def The response is a 500, and the error that cppcms logs to cerr is this: 2012-04-23 20:07:57; cppcms, error: Caught exception [Value was not loaded] 0x10653d2b3: cppcms::cppcms_error::cppcms_error(std::string const&) + 0x63 in /usr/local/lib/libcppcms.1.dylib (http_context.cpp:139) The error is caused by the highlighted line in the imageserver.cpp file. >From my reading of the tutorials, the create() member function should be loading the form from the context(), but obviously it isn't, so obviously I'm missing something. Can anyone maybe see where I'm going wrong / what I'm failing to do? & thanks again for all the help, it's really appreciated. Doug. |