Add max image upload size limit

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-05-04 21:14:00 -07:00
parent e6c60ff93c
commit 6ed47f9957
6 changed files with 27 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
{% extends "board/base.html" %}
{% load post_body %}
{% block title %}
{% with title=board.url %}
@@ -28,6 +29,7 @@
{% csrf_token %}
<table>
{{ form.as_table }}
<tr><td>&nbsp;</td><td>Max image size: {{ max_upload_size|measure_bytes }}</td></tr>
<tr><td>&nbsp;</td><td><input type="submit" value="Submit" /></td></tr>
</table>
</form>

View File

@@ -1,4 +1,5 @@
{% extends "board/base.html" %}
{% load post_body %}
{% block title %}
{% with title=board.url %}
@@ -24,6 +25,7 @@
{% csrf_token %}
<table>
{{ form.as_table }}
<tr><td>&nbsp;</td><td><span class="post_form_image_specs">Max image size: {{ max_upload_size|measure_bytes }}</span></td></tr>
<tr><td>&nbsp;</td><td><input type="submit" value="Submit" /></td></tr>
</table>
</form>