wibble 0.1.28
|
Multiple file uploads with the same name. More...
#include <http.h>
Public Member Functions | |
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) |
Handle a file upload from a multipart/form-data file upload part. | |
Public Attributes | |
std::vector< FileInfo > | files |
Multiple file uploads with the same name.
bool wibble::net::http::FileParamMulti::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 | ||
) | [virtual] |
Handle a file upload from a multipart/form-data file upload part.
Implements wibble::net::http::FileParam.
References wibble::str::basename(), wibble::net::http::FileParam::FileInfo::client_fname, wibble::str::fmtf(), wibble::net::http::FileParam::FileInfo::fname, wibble::iterator(), wibble::str::joinpath(), and wibble::net::mime::Reader::read_until_boundary().
std::vector<FileInfo> wibble::net::http::FileParamMulti::files |