mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-29 02:31:00 +00:00
Fix file size label hardcode
This commit is contained in:
parent
5e65d569bf
commit
f689110e0b
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ class ImageUpload(FormView):
|
||||||
make <ul.errorlist/> called errorlist
|
make <ul.errorlist/> called errorlist
|
||||||
make <li/> called error
|
make <li/> called error
|
||||||
set size_in_mb to (me.files[0].size / 1024 / 1024).toFixed(2)
|
set size_in_mb to (me.files[0].size / 1024 / 1024).toFixed(2)
|
||||||
put 'File must be 10MB or less (actual: ' + size_in_mb + 'MB)' into error
|
put 'File must be {settings.SETUP.MEDIA_MAX_IMAGE_FILESIZE_MB}MB or less (actual: ' + size_in_mb + 'MB)' into error
|
||||||
put error into errorlist
|
put error into errorlist
|
||||||
put errorlist before me
|
put errorlist before me
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue