Add attachment validator when uploading attachment to tickets

This commit is contained in:
Garret Wassermann
2021-10-05 06:25:42 -04:00
parent a5f801bb52
commit aff67184d4
10 changed files with 81 additions and 4 deletions

View File

@ -223,7 +223,7 @@ class AbstractTicketForm(CustomFieldMixin, forms.Form):
widget=forms.FileInput(attrs={'class': 'form-control-file'}),
required=False,
label=_('Attach File'),
help_text=_('You can attach a file such as a document or screenshot to this ticket.'),
help_text=_('You can attach a file to this ticket. Only file types such as plain text (.txt), a document (.pdf, .docx, or .odt), or screenshot (.png or .jpg) may be uploaded.'),
)
class Media: