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

Throw a more meaningful error when the upload_max_filesize is exeeded #297

Open
g105b opened this issue Apr 19, 2024 · 0 comments
Open

Throw a more meaningful error when the upload_max_filesize is exeeded #297

g105b opened this issue Apr 19, 2024 · 0 comments

Comments

@g105b
Copy link
Member

g105b commented Apr 19, 2024

If the default php.ini setting of upload_max_filesize is 2M, and a 3M file is uploaded, the exception is Gt\Input\UploadedFileSecurityException. This is something we can test for, and if the file is larger than the smaller limit, we can throw an appropriate error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant