Wt  3.2.2
Public Member Functions
Wt::Http::UploadedFile Class Reference

Details about a file uploaded with a request to a resource. More...

#include <Wt/Http/Request>

List of all members.

Public Member Functions

const std::string & spoolFileName () const
 Return the spool file name.
const std::string & clientFileName () const
 Returns the client file name.
const std::string & contentType () const
 Returns the file content type.
void stealSpoolFile () const
 Steals the uploaded spool file.

Detailed Description

Details about a file uploaded with a request to a resource.

See also:
Request::uploadedFiles()
WResource::handleRequest()

Member Function Documentation

const std::string & Wt::Http::UploadedFile::clientFileName ( ) const

Returns the client file name.

This is the location that was indicated by the browser. Depending on the browser this is an absolute path or only the file name.

const std::string & Wt::Http::UploadedFile::contentType ( ) const

Returns the file content type.

Returns the content mime-type that was sent along with the uploaded file.

const std::string & Wt::Http::UploadedFile::spoolFileName ( ) const

Return the spool file name.

This is the location on the local (server) filesystem where the uploaded file is temporarily stored. Unless you call stealSpoolFile(), this file is deleted automatically.

void Wt::Http::UploadedFile::stealSpoolFile ( ) const

Steals the uploaded spool file.

By stealing the spooled file, it is no longer automatically deleted by Wt.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator

Generated on Fri Jul 27 2012 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1