mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +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
|
@ -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…
Reference in a new issue