diff --git a/src/frontend/app/attachments/attachment-create/attachment-create.component.html b/src/frontend/app/attachments/attachment-create/attachment-create.component.html
index 395f54d618e26dba82167815d268ea49bcbcd60f..f0025c17108092d9f7840ef01dcfeaf8533fb779 100755
--- a/src/frontend/app/attachments/attachment-create/attachment-create.component.html
+++ b/src/frontend/app/attachments/attachment-create/attachment-create.component.html
@@ -40,7 +40,7 @@
                         </div>
                         <div class="attachment-form-item">
                             <mat-form-field class="input-form">
-                                <input matInput placeholder="{{'lang.subject' | translate}}" [formControl]="attachment['title']">
+                                <input matInput placeholder="{{'lang.subject' | translate}}" maxlength="255" [formControl]="attachment['title']">
                             </mat-form-field>
                             <div class="fieldState">
                                 <i class="fas fa-asterisk fieldRequired"
diff --git a/src/frontend/app/attachments/attachments-page/attachment-page.component.html b/src/frontend/app/attachments/attachments-page/attachment-page.component.html
index 61a6e3c5d24fb5e2944a5bc808aceeff9703830a..3909d00d90b2d6009a63ec80b2cf36f8aeedf40f 100755
--- a/src/frontend/app/attachments/attachments-page/attachment-page.component.html
+++ b/src/frontend/app/attachments/attachments-page/attachment-page.component.html
@@ -47,7 +47,7 @@
                         </div>
                         <div class="attachment-form-item">
                             <mat-form-field class="input-form">
-                                <input matInput placeholder="{{'lang.subject' | translate}}" [formControl]="attachment['title']">
+                                <input matInput placeholder="{{'lang.subject' | translate}}" maxlength="255" [formControl]="attachment['title']">
                             </mat-form-field>
                             <div class="fieldState">
                                 <i class="fas fa-asterisk fieldRequired"