Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

decho's avatar
Level 1

Size file upload validation fail

Hi, When I try to validate file size for uploaded I have an error in "vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:24"

'files.*' => 'mimes:doc,docx,pdf,jpg,jpeg,png|max:2048'

What I`m wrong?

Laravel: v8.73.1

0 likes
1 reply
SilenceBringer's avatar
Level 55

@decho it's not laravel validation. It's php post max size fails. Edit your php config to allow more size

Please or to participate in this conversation.