Added new widget to alert if a file is set at larger than 10 MB.
- Updated default widget to use template that adds a notification box. - Added JS to add onchange & load events to look at the value in the input and trigger the notification & disable the form submits.
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
{% load i18n %}
|
||||
{% include "django/forms/widgets/clearable_file_input.html" %}
|
||||
<span class="help file-cta is-hidden file-too-big">{% trans "File exceeds maximum size: 10MB" %}</span>
|
Reference in New Issue
Block a user