mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Story#113524121 - typo in file size validation
This commit is contained in:
parent
07a4b1bb61
commit
492aeefb35
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ $(document).on 'page:change', ->
|
||||||
if (files = fileInput.files).length
|
if (files = fileInput.files).length
|
||||||
fileSize = files[0].size
|
fileSize = files[0].size
|
||||||
if fileSize < minSize
|
if fileSize < minSize
|
||||||
alert 'Document size is less then 100kB bytes'
|
alert 'Document size is less then 8kB bytes'
|
||||||
return false
|
return false
|
||||||
else if fileSize > maxSize
|
else if fileSize > maxSize
|
||||||
alert 'Document size is more then 8MB bytes'
|
alert 'Document size is more then 8MB bytes'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue