Skip to content

Commit f502c5b

Browse files
committed
Added file isValid method.
1 parent 6192243 commit f502c5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

requests.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ Since you often will want to flash input in association with a redirect to the p
110110

111111
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.
112112

113+
#### Determining If An Uploaded File Is Valid
114+
115+
if (Input::file('photo')->isValid())
116+
{
117+
//
118+
}
119+
113120
#### Moving An Uploaded File
114121

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

0 commit comments

Comments
 (0)