When you have file type checking within Umbraco Forms and you upload an incorrect file type, it shows the message "The file type (" + fileName.Substring(startIndex, fileName.Length - startIndex) + ") you tried to upload is not allowed.".
This seems to be hardcoded and it does not seem that we can translate this, is this correct?
j
JigitalCharlie
04/05/2024, 2:49 PM
Hi @mbentancour it sure is 🙂
JigitalCharlie
04/05/2024, 2:51 PM
For the translation add # in to the validation message for the field so #myvalidationmessage and then in the translations section you need to add myvalidationmessage as the name of the item and you can add the validation message into the languages you have got configured 🙂
m
Maarten
04/09/2024, 7:00 AM
@JigitalCharlie that seems to work for all validations except for the file type, as there's no field to configure that?
j
JigitalCharlie
04/09/2024, 8:28 AM
Hmmm FileType. I would add my own custom field then and add my own validation. That would work 😄