Add upload errors to translations file

This commit is contained in:
richard-dds
2019-08-14 11:35:07 -04:00
parent 36d39dc949
commit a7417b4f39
3 changed files with 9 additions and 3 deletions

View File

@@ -68,13 +68,13 @@ class AttachmentForm(BaseForm):
filename = HiddenField(
id="attachment_filename",
validators=[
Length(max=100, message="Filename may be no longer than 100 characters.")
Length(max=100, message=translate("forms.attachment.filename.length_error"))
],
)
object_name = HiddenField(
id="attachment_object_name",
validators=[
Length(max=40, message="Object name may be no longer than 40 characters.")
Length(max=40, message=translate("forms.attachment.object_name.length_error"))
],
)
accept = ".pdf,application/pdf"