added code example to file::upload method.

This commit is contained in:
Taylor Otwell
2011-11-27 19:25:59 -06:00
parent 09b4471a5d
commit 4661ef14bc

View File

@@ -106,6 +106,11 @@ class File {
/**
* Move an uploaded file to permanent storage.
*
* <code>
* // Upload the $_FILES['photo'] file to a permanent location
* File::upload('photo', 'path/to/new/home.jpg');
* </code>
*
* @param string $key
* @param string $path
* @return bool