Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $data=Input::all();
  2.  
  3. $file = $data["picture_url"];
  4. $rules = array('picture_url' => 'required|max:10000|mimes:jpg');
  5.  
  6. $validator = Validator::make($file, $rules);
  7.  
  8. if ($validator->fails()) {
  9. echo "Arquivo inválido";
  10. }else{
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement