You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the bundle and my user raised an issue related to file extensions. It seems that the allowedExtensions and the allowedMimeTypes properties are not took into account when the MultiUploadController::multiUploadAction method is used.
How can we do to validate the media when this controller action is called and how can we handle the form violation messages in the view?
Add file extension validation by javascript
Add MimeType validation by javascript
Handle Messages by javascript
Update Documentation
Create UPGRADE note
Use Symfony Form validation on POST
Thanks for your help!
The text was updated successfully, but these errors were encountered:
The mime-types comes from provider so before post to multiUploadAction it gets validated. So the validation depends on the configuration of the provider
@silasjoisten I don't really remember the origin of my issue but I think there is still a need of using the Symfony form validation as I think we should not trust only the client side and do also our own validation in the controller method (isFormValid, handleRequest, ...) This way we could also for exemple use the Validator component in the Media Entity.
Hi,
I'm using the bundle and my user raised an issue related to file extensions. It seems that the
allowedExtensions
and theallowedMimeTypes
properties are not took into account when theMultiUploadController::multiUploadAction
method is used.How can we do to validate the media when this controller action is called and how can we handle the form violation messages in the view?
Thanks for your help!
The text was updated successfully, but these errors were encountered: