mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 07:34:41 +08:00
Merge pull request #884 from Zanz2/size_limit_small_SCI-1810
Fixed; compared file size in wrong units [SCI-1810]
This commit is contained in:
commit
038c15a1ee
1 changed files with 1 additions and 1 deletions
|
@ -610,7 +610,7 @@ class ProtocolsController < ApplicationController
|
|||
end
|
||||
return 0 # return 0 stops the rest of the controller code from executing
|
||||
end
|
||||
if file_size / 1000 > Constants::FILE_MAX_SIZE_MB
|
||||
if file_size > Constants::FILE_MAX_SIZE_MB.megabytes
|
||||
@protocolsio_too_big = true
|
||||
respond_to do |format|
|
||||
format.js {}
|
||||
|
|
Loading…
Add table
Reference in a new issue