File upload parameter. More...
#include <http.h>
Classes | |
struct | FileInfo |
Infomation about one uploaded file. More... | |
Public Member Functions | |
virtual | ~FileParam () |
virtual bool | read (net::mime::Reader &mime_reader, std::map< std::string, std::string > headers, const std::string &outdir, const std::string &fname_blacklist, const std::string &client_fname, int sock, const std::string &boundary, size_t inputsize)=0 |
Handle a file upload from a multipart/form-data file upload part. |
File upload parameter.
wibble::net::http::FileParam::~FileParam | ( | ) | [virtual] |
virtual bool wibble::net::http::FileParam::read | ( | net::mime::Reader & | mime_reader, | |
std::map< std::string, std::string > | headers, | |||
const std::string & | outdir, | |||
const std::string & | fname_blacklist, | |||
const std::string & | client_fname, | |||
int | sock, | |||
const std::string & | boundary, | |||
size_t | inputsize | |||
) | [pure virtual] |
Handle a file upload from a multipart/form-data file upload part.
Implemented in wibble::net::http::FileParamSingle, and wibble::net::http::FileParamMulti.
Referenced by wibble::net::http::Params::parse_multipart().