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

MaxFileSizeExceededException thown by MediaBundle is not caught by form bundle #355

Open
creatiombe opened this issue Mar 12, 2023 · 1 comment

Comments

@creatiombe
Copy link

Q A
Bug? yes
New Feature? no
Sulu Version 2.5.7

Actual Behavior

How does it behave at the moment?

When you make a upload field and you upload a file higher then the max limit the media bundle throws a MaxFileSizeExceededException

Expected Behavior

What is the behavior you expect?

It should use a validator instead of MaxFileSizeExceededException, form bundle should catch this error and throw it as a validation error instead.

@creatiombe
Copy link
Author

Also what is missing apparently is the availability to upload pdf, doc or zip files. My brother made a dynamic form for job applications and bumped into these issues.

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

0 participants