1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::Http::UploadedFile Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="namespaceWt_1_1Http.html">Http</a>::<a class="el" href="classWt_1_1Http_1_1UploadedFile.html">UploadedFile</a>
</div>
</div>
<div class="contents">
<h1>Wt::Http::UploadedFile Class Reference</h1><!-- doxytag: class="Wt::Http::UploadedFile" -->Details about a file uploaded with a (POST) request.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/Http/Request></code>
<p>
<p>
<a href="classWt_1_1Http_1_1UploadedFile-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Http_1_1UploadedFile.html#80453ce8dc7a06e12b5c1f622c027320">spoolFileName</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the spool file name. <a href="#80453ce8dc7a06e12b5c1f622c027320"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Http_1_1UploadedFile.html#6548081a259f55d572bf049d576bb2a3">clientFileName</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the client file name. <a href="#6548081a259f55d572bf049d576bb2a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Http_1_1UploadedFile.html#165bc88288a19a1134ecdf3922f86f25">contentType</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the file content type. <a href="#165bc88288a19a1134ecdf3922f86f25"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Http_1_1UploadedFile.html#b8cdd14724b871e71d3ec7d9530f9e29">stealSpoolFile</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Steals the uploaded spool file. <a href="#b8cdd14724b871e71d3ec7d9530f9e29"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Details about a file uploaded with a (POST) request.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Http_1_1Request.html#3b4aaa1bf2debdf29306e7bb63d192fb" title="Returns uploaded file parameters.">Request::uploadedFiles()</a> </dd></dl>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="80453ce8dc7a06e12b5c1f622c027320"></a><!-- doxytag: member="Wt::Http::UploadedFile::spoolFileName" ref="80453ce8dc7a06e12b5c1f622c027320" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const std::string & Wt::Http::UploadedFile::spoolFileName </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return the spool file name.
<p>
This is the location on the local (server) filesystem where the uploaded file is temporarily stored. Unless you call <a class="el" href="classWt_1_1Http_1_1UploadedFile.html#b8cdd14724b871e71d3ec7d9530f9e29" title="Steals the uploaded spool file.">stealSpoolFile()</a>, this file is deleted automatically.
</div>
</div><p>
<a class="anchor" name="6548081a259f55d572bf049d576bb2a3"></a><!-- doxytag: member="Wt::Http::UploadedFile::clientFileName" ref="6548081a259f55d572bf049d576bb2a3" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const std::string & Wt::Http::UploadedFile::clientFileName </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the client file name.
<p>
This is the location that was indicated by the browser. Depending on the browser this is an absolute path or only the file name.
</div>
</div><p>
<a class="anchor" name="165bc88288a19a1134ecdf3922f86f25"></a><!-- doxytag: member="Wt::Http::UploadedFile::contentType" ref="165bc88288a19a1134ecdf3922f86f25" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const std::string & Wt::Http::UploadedFile::contentType </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the file content type.
<p>
Returns the content mime-type that was sent along with the uploaded file.
</div>
</div><p>
<a class="anchor" name="b8cdd14724b871e71d3ec7d9530f9e29"></a><!-- doxytag: member="Wt::Http::UploadedFile::stealSpoolFile" ref="b8cdd14724b871e71d3ec7d9530f9e29" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Http::UploadedFile::stealSpoolFile </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Steals the uploaded spool file.
<p>
By stealing the spooled file, it is no longer automatically deleted by Wt.
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:08 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|