We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version: 3.1.11
I need to verify whether a file upload MIME type is actually one of a list of types. The resulting error message is unhelpful.
addRule($form::MIME_TYPE, $form->getTranslator()->translate('kraken.error.filemustbeoftypewithvalue', array('type' => AlgorithmsAndTypes::TYPE_TEXT_PLAIN)), array(AlgorithmsAndTypes::TYPE_TEXT_PLAIN, AlgorithmsAndTypes::TYPE_PEM_ENCODED_FILE , AlgorithmsAndTypes::TYPE_X509_USER_CERT))
where kraken.error.filemustbeoftypewithvalue is defined in NEON translation file as
'Nepodporovaný typ souboru %value.'
The resulting error message is
Nepodporovaný typ souboru [object FileList].
Which does not tell me what MIME type was actually detected by the validator.
I would expect an error message that told me exactly what MIME type was detected:
Nepodporovaný typ souboru text/html.
etc.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version: 3.1.11
Bug Description
I need to verify whether a file upload MIME type is actually one of a list of types. The resulting error message is unhelpful.
Steps To Reproduce
where kraken.error.filemustbeoftypewithvalue is defined in NEON translation file as
'Nepodporovaný typ souboru %value.'
The resulting error message is
Nepodporovaný typ souboru [object FileList].
Which does not tell me what MIME type was actually detected by the validator.
Expected Behavior
I would expect an error message that told me exactly what MIME type was detected:
Nepodporovaný typ souboru text/html.
etc.
The text was updated successfully, but these errors were encountered: