cvs: peardoc /en/package/http/http-upload information.xml
| From: | Greg Beaver | Date: | Thu, 01 Feb 2007 06:16:43 +0000 |
| Subject: | cvs: peardoc /en/package/http/http-upload information.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9382@lists.php.net to get a copy of this message | ||
cellog Thu Feb 1 06:16:43 2007 UTC
Modified files:
/peardoc/en/package/http/http-upload information.xml
Log:
fix Doc Bug #5536 No explanation of properties
http://cvs.php.net/viewvc.cgi/peardoc/en/package/http/http-upload/information.xml?r1=1.1&r2=1.2&diff_format=u
Index: peardoc/en/package/http/http-upload/information.xml
diff -u peardoc/en/package/http/http-upload/information.xml:1.1
peardoc/en/package/http/http-upload/information.xml:1.2
--- peardoc/en/package/http/http-upload/information.xml:1.1 Wed Sep 7 18:40:01 2005
+++ peardoc/en/package/http/http-upload/information.xml Thu Feb 1 06:16:43 2007
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<sect2 id="package.http.http-upload.information">
<title>Extensive information about uploaded files</title>
@@ -25,6 +25,54 @@
the value of this parameter will be returned as a string.
</para>
+ <para>
+ The list of possible values is determined by the contents of the
+ <varname>$_FILES</varname> array, but is customized for the purposes
+ of HTTP_Upload. Here are the possible properties:
+ </para>
+
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>'name'</literal>: destination file name
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>'tmp'</literal>: temporary uploaded file name (assigned by PHP)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>'formname'</literal>: name of the HTML form that submitted the
uploaded file
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>'type'</literal>: Mime type of the file
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>'size'</literal>: size of the file
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>'error'</literal>: if there was an error on upload, this
contains a string
+ representing the kind of error. The <function>errorCode</function> method can be
used
+ to retrieve a localized error message from this property.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ * @param string $lang used language for errormessages
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+
<example>
<title>Extensive information via <function>getProp</function></title>