<doc>
	<legacy_id></legacy_id>
	<name>$_FILES</name>
	<type>keyword</type>

	<syntax>
	</syntax>

	<synonyms>
	</synonyms>

	<summary><b>$_FILES</b> is an array variable that is used to handle file uploads.</summary>

	<examples>
<example>put $_FILES into tFilesArray</example>
<example><p>put $_FILES[&quot;myFile&quot;][&quot;type&quot;] into tFileType</p><p></p></example>
<example><p>if $_FILES[&quot;myFile&quot;][&quot;error&quot;] is not empty then</p><p>  ... do something ...</p><p>end if</p></example>
	</examples>

	<history>
		<introduced version="4.6.4">Introduced</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		
	</history>

	<objects>
	</objects>

	<platforms>
		<mac/>
		<windows/>
		<linux/>
	</platforms>

	<classes>
		<server/>
	</classes>

	<security>
	</security>


	<classification>
	</classification>

	<references>
		<keyword tag="$_SERVER">$_SERVER Keyword</keyword>
		<keyword tag="$_POST">$_POST Keyword</keyword>
		<keyword tag="$_POST_BINARY">$_POST_BINARY Keyword</keyword>
		<keyword tag="$_POST_RAW">$_POST_RAW Keyword</keyword>
		<keyword tag="$_GET">$_GET Keyword</keyword>
		<keyword tag="$_GET_RAW">$_GET_RAW Keyword</keyword>
		<keyword tag="$_GET_BINARY">$_GET_BINARY Keyword</keyword>
	</references>

	<description>
	<overview>Use the <b>$_FILES</b> keyword to access the array generated from uploading a file.<p></p><p><b>$_FILES</b> is only available when running in CGI mode (Server).</p></overview>

		<parameters>
		</parameters>

	<value></value>
	<comments>The <b>$_FILES </b>is array is used to store information about files that have been uploaded.<p></p><p>The contents of <b>$_FILES</b> is as follows. The upload name 'userfile' is for demonstration purposes in this example and can be changed as required:</p><p><b>$_FILES['userfile']['name']</b> // The original name of the file on the client machine. </p><p><b>$_FILES['userfile']['type']</b> // The mime type of the file, if the browser provided this information. </p><p><b>$_FILES['userfile']['size']</b> // The size, in bytes, of the uploaded file. </p><p><b>$_FILES['userfile']['filename']</b> // The temporary filename of the file in which the uploaded file was stored on the server. </p><p><b>$_FILES['userfile']['error']</b> // Any error string associated with this file upload. </p><p></p><p>The following error messages can be returned in the event of a file upload error:</p><p>   &quot;uplaod stopped&quot; - The uploaded file was only partially uploaded. </p><p>   &quot;upload failed&quot; - No file was uploaded. </p><p>   &quot;no upload folder&quot; - Missing a temporary folder. </p><p>   &quot;i/o error&quot; - Failed to write file to disk. </p><p></p><p>The server engine copies the contents of the files into a temporary location. Once the script has finished executing, all temporary files that were created are deleted.</p></comments>
	</description>
</doc>