Wt  3.3.8
Public Member Functions | List of all members
Wt::Http::UploadedFile Class Reference

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

#include <Wt/Http/Request>

Public Member Functions

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

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.


Generated on Mon Sep 4 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11