Fix file size label hardcode

This commit is contained in:
Andrew Godwin 2023-01-15 10:31:27 -07:00
parent 5e65d569bf
commit f689110e0b

View file

@ -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