Display alert when file selected in filebox is too large #1451

This commit is contained in:
Kijin Sung 2020-10-30 21:49:48 +09:00
parent 6e2cbbbdfa
commit a3271c6a40
2 changed files with 4 additions and 1 deletions

View file

@ -31,7 +31,7 @@
<div class="x_control-group">
<label for="file" class="x_control-label">{$lang->file}</label>
<div class="x_controls">
<input type="file" name="addfile" id="file" />
<input type="file" name="addfile" id="file" data-max-filesize="{$max_filesize}" data-max-filesize-error="{lang('file.allowed_filesize_exceeded')|escape}" />
</div>
</div>
<div class="btnArea">