Browse Source

Adding third parameter (filename) to upload method.

lukemartin 12 years ago
parent
commit
52bce5596e
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:
 
-	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).