summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r--template/en/default/attachment/createformcontents.html.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/template/en/default/attachment/createformcontents.html.tmpl b/template/en/default/attachment/createformcontents.html.tmpl
index c8016841c..48e4f4af0 100644
--- a/template/en/default/attachment/createformcontents.html.tmpl
+++ b/template/en/default/attachment/createformcontents.html.tmpl
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
#%]
+[% max_local = Param('maxlocalattachment') * 1024 %]
+[% max_limit = Param('maxattachmentsize')> max_local ? Param('maxattachmentsize') : max_local %]
<tr class="attachment_data">
<th><label for="data">File</label>:</th>
<td>
@@ -14,6 +16,7 @@
javascript:TUI_toggle_class('attachment_data')"
>paste text as attachment</a>).<br>
<input type="file" id="data" name="data" size="50" onchange="DataFieldHandler()">
+ <br><em>(File size limit: [% max_limit FILTER html %] KB)</em>
</td>
</tr>
<tr class="attachment_text_field">