added code example to file::upload method.
This commit is contained in:
@@ -106,6 +106,11 @@ class File {
|
|||||||
/**
|
/**
|
||||||
* Move an uploaded file to permanent storage.
|
* 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 $key
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @return bool
|
* @return bool
|
||||||
|
|||||||
Reference in New Issue
Block a user