Browse Source

Merge pull request #735 from lukemartin/patch-1

Adding third parameter (filename) to upload method.
Taylor Otwell 12 years ago
parent
commit
aae8b62d6a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/documentation/files.md

+ 1 - 1
laravel/documentation/files.md

@@ -34,7 +34,7 @@
 
 
 #### Moving a $_FILE to a permanent location:
 #### Moving a $_FILE to a permanent location:
 
 
-	Input::upload('picture', 'path/to/pictures');
+	Input::upload('picture', 'path/to/pictures', 'filename.ext');
 
 
 > **Note:** You can easily validate file uploads using the [Validator class](/docs/validation).
 > **Note:** You can easily validate file uploads using the [Validator class](/docs/validation).