Skip to content

Commit

Permalink
Added file isValid method.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 10, 2014
1 parent 6192243 commit f502c5b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ Since you often will want to flash input in association with a redirect to the p

The object returned by the `file` method is an instance of the `Symfony\Component\HttpFoundation\File\UploadedFile` class, which extends the PHP `SplFileInfo` class and provides a variety of methods for interacting with the file.

#### Determining If An Uploaded File Is Valid

if (Input::file('photo')->isValid())
{
//
}

#### Moving An Uploaded File

Input::file('photo')->move($destinationPath);
Expand Down

0 comments on commit f502c5b

Please sign in to comment.