wibble 1.1
|
Infomation about one uploaded file. More...
#include <http.h>
Public Member Functions | |
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::string | fname |
File pathname on the local file system. | |
std::string | client_fname |
File pathname provided by the client. | |
Infomation about one uploaded file.
bool wibble::net::http::FileParam::FileInfo::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.
References wibble::str::basename(), client_fname, wibble::str::fmtf(), fname, wibble::str::joinpath(), and wibble::net::mime::Reader::read_until_boundary().
std::string wibble::net::http::FileParam::FileInfo::client_fname |
File pathname provided by the client.
Referenced by read().
std::string wibble::net::http::FileParam::FileInfo::fname |
File pathname on the local file system.
Referenced by read().