Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $data=Input::all();
- $file = $data["picture_url"];
- $rules = array('picture_url' => 'required|max:10000|mimes:jpg');
- $validator = Validator::make($file, $rules);
- if ($validator->fails()) {
- echo "Arquivo inválido";
- }else{
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement