Skip to content

Commit dda5a3e

Browse files
committed
Input::upload() needs to point to an actual file, or you get a not a directory error
1 parent 5e8bf2d commit dda5a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
#### Moving a $_FILE to a permanent location:
3636

37-
Input::upload('picture', 'path/to/pictures');
37+
Input::upload('picture', 'path/to/pictures/newfile.ext');
3838

3939
> **Note:** You can easily validate file uploads using the [Validator class](/docs/validation).
4040

0 commit comments

Comments
 (0)