Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README

  • Loading branch information...
commit 7c8f0ae59d3297884ea9484bc27cb6625fb19349 1 parent 96bf777
@codeguy codeguy authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -18,10 +18,10 @@ When the HTML form is submitted, the server-side PHP code can validate and uploa
// Validate file upload
$file->addValidations(array(
// Ensure file is of type "image/png"
- new \Upload\Validation\MediaType('image/png'),
+ new \Upload\Validation\Mimetype('image/png'),
- // Ensure file is no larger than 5MB
- new \Upload\Validation\FileSize('5MB')
+ // Ensure file is no larger than 5M (use "B", "K", M", or "G")
+ new \Upload\Validation\Size('5M')
));
// Try to upload file
Please sign in to comment.
Something went wrong with that request. Please try again.