Re: [Cppcms-users] cppCMS upload image example
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-10-26 07:04:14
|
> > Is there an example of how to handle an uploaded image in the cppCMS app server? > Take a look on cppcms::widgets::file class http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1widgets_1_1file.html It allows you to upload files via ordinary forms. Don't forget to use "multipart/form-data" as encoding in the form. > Currently, I am POSTing jQuery form data to cppcms::rpc::json_rpc_server. > Note: 1. The JSON format does not support binary data. 2. Best way to upload files is to use native browser support. So use ordinary form for file upload. Artyom |