How to store a file attachment? Http POST Content-Type: multipart/form-data supported?

shamim40.yahoo.com's picture
Hi, I am trying to upload a file using google's crome REST client (which uses Content-Type: multipart/form-data) or any browser having a file attachment using POST with Content-Type: multipart/form-data... and i am getting response as "415 Unsupported Media Type" I am using wso2 C++ package version wso2-wsf-cpp-src-2.1.0. Kindly let me know, do this installation supports multipart/form-data or multipart/related content type. Or please let me know, if there is any other way to receive and store the file using wso2 C++ framework. I will appreciate any response on this... Thanks, Shamim
nandika's picture

Re

multipart/related content type is handled by WSF/C++. We have not tested with multipart/form-data although there is some code to handle this. You can send content as MTOM or base64 and save it as a file at the receiving end. Regards Nandika