Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File validation will not be triggered if the upload file exceeds your upload_max_filesize ini directive #4226

Closed
rained23 opened this issue Apr 22, 2014 · 1 comment

Comments

@rained23
Copy link

Hi,

I have my upload_max_filesize at default 2048kb , PHP 5.5.10 builtin server.
I tried adding dd() inside max,min,size inside Illuminate\Validation\Validator.php for testing the file input but non of them getting triggered.

If I place required as validation, it will trigger the validation as the input are not exist.
dd(Input::all()) shows that its exists in the input request.

@taylorotwell
Copy link
Member

There was a probably an error which is why validation is saying the file isn't there. Sometimes PHP still puts the file in the $_FILES array though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants