0
votes

In laravel5 official documentation i get validation rules here http://laravel.com/docs/5.0/validation#rule-size . For files, size corresponds to the file size in kilobytes. And according to it i make a rules for validation image file:

'property_image'         => 'mimes:jpeg,bmp,png,gif|size:200'

But its expect exactly 200K size image. So, I want min, max size or range for validation image. Is there anyway?

1
thanks @MarcB its workhizbul25

1 Answers

3
votes
'property_image' => 'mimes:jpeg,bmp,png,gif|max:200'

btw. there's no jpg mime, image/jpeg is proper mime type.