diff options
author | Derek Allard <derek.allard@ellislab.com> | 2010-07-13 15:41:41 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2010-07-13 15:41:41 +0200 |
commit | c419c2a4addf93425b4ffdb4869e7017f1d7127f (patch) | |
tree | 21887791581439829bdf4d5b994b372dbd1c0480 /user_guide | |
parent | 9a42f58bdafb4f1558ad25f81c66c03ca4d6e9d9 (diff) | |
parent | e9d723fb2c13585fa8a502fde7dd83dc334874ff (diff) |
Automated merge with http://hg.ellislab.com/CodeIgniter2
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/libraries/file_uploading.html | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/user_guide/libraries/file_uploading.html b/user_guide/libraries/file_uploading.html index 061d55627..28cf8de3e 100644 --- a/user_guide/libraries/file_uploading.html +++ b/user_guide/libraries/file_uploading.html @@ -28,7 +28,7 @@ <div id="masthead"> <table cellpadding="0" cellspacing="0" border="0" style="width:100%"> <tr> -<td><h1>CodeIgniter User Guide Version 2.0.0</h1></td> +<td><h1>CodeIgniter User Guide Version 1.7.2</h1></td> <td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td> </tr> </table> @@ -74,7 +74,7 @@ preferences, restricting the type and size of the files.</p> <li>Once uploaded, the user will be shown a success message.</li> </ul> -<p>To demonstrate this process here is a brief tutorial. Afterward you'll find reference information.</p> +<p>To demonstrate this process here is brief tutorial. Afterward you'll find reference information.</p> <h2>Creating the Upload Form</h2> @@ -255,7 +255,7 @@ $this->upload->initialize($config);</code> <td class="td"><strong>allowed_types</strong></td> <td class="td">None</td> <td class="td">None</td> -<td class="td">The mime types corresponding to the types of files you allow to be uploaded. Usually the file extension can be used as the mime type. Separate multiple types with a pipe. If '*' is used, all file types will be allowed.</td> +<td class="td">The mime types corresponding to the types of files you allow to be uploaded. Usually the file extension can be used as the mime type. Separate multiple types with a pipe.</td> </tr> @@ -264,8 +264,7 @@ $this->upload->initialize($config);</code> <td class="td">None</td> <td class="td">Desired file name</td> <td class="td"> - <p>If set CodeIgniter will rename the uploaded file to this name.</p> - <p class="important"><strong>Note:</strong>The filename should not include a file extension.</p> + <p>If set CodeIgniter will rename the uploaded file to this name. The extension provided in the file name must also be an allowed file type.</p> </td> </tr> @@ -318,12 +317,6 @@ $this->upload->initialize($config);</code> <td class="td">TRUE/FALSE (boolean)</td> <td class="td">If set to TRUE, any spaces in the file name will be converted to underscores. This is recommended.</td> </tr> -<tr> -<td class="td"><strong>xss_clean</strong></td> -<td class="td">FALSE</td> -<td class="td">TRUE/FALSE (boolean)</td> -<td class="td">If set to TRUE, the files will be tested for XSS vulnerabilities.</td> -</tr> </table> @@ -377,6 +370,7 @@ Here is the array prototype:</p> [full_path] => /path/to/your/upload/jpg.jpg<br /> [raw_name] => mypic<br /> [orig_name] => mypic.jpg<br /> + [client_name] => mypic.jpg<br /> [file_ext] => .jpg<br /> [file_size] => 22.2<br /> [is_image] => 1<br /> @@ -411,6 +405,9 @@ Here is the array prototype:</p> <tr><td class="td"><strong>orig_name</strong></td> <td class="td">The original file name. This is only useful if you use the encrypted name option.</td></tr> +<tr><td class="td"><strong>client_name</strong></td> +<td class="td">The file name as supplied by the client user agent, prior to any file name preparation or incrementing.</td></tr> + <tr><td class="td"><strong>file_ext</strong></td> <td class="td">The file extension with period</td></tr> @@ -447,7 +444,7 @@ Previous Topic: <a href="encryption.html">Encryption Helper</a> <a href="../index.html">User Guide Home</a> · Next Topic: <a href="form_validation.html">Form Validation Class</a> </p> -<p><a href="http://codeigniter.com">CodeIgniter</a> · Copyright © 2006-2010 · <a href="http://ellislab.com/">EllisLab, Inc.</a></p> +<p><a href="http://codeigniter.com">CodeIgniter</a> · Copyright © 2006-2010 · <a href="http://ellislab.com/">Ellislab, Inc.</a></p> </div> </body> |