B
B
BonBon Slick2017-06-22 17:40:33
Laravel
BonBon Slick, 2017-06-22 17:40:33

Laravel validation?

'img' => 'nullable|file|image|mimetypes:jpeg/jpg/png|between:700,7000',

Gives errors:
'header_img.mimetypes' => "image should be JPEG/PNG formats",

Strange, even if the file is of the correct mimetype, it only works if the check is removed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kstyle, 2017-06-22
@BonBonSlick

there are like commas, not slashes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question