mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +08:00
Fixed to use .megabytes
This commit is contained in:
parent
e782f13a7d
commit
1b540a75a1
1 changed files with 1 additions and 1 deletions
|
@ -610,7 +610,7 @@ class ProtocolsController < ApplicationController
|
||||||
end
|
end
|
||||||
return 0 # return 0 stops the rest of the controller code from executing
|
return 0 # return 0 stops the rest of the controller code from executing
|
||||||
end
|
end
|
||||||
if file_size > Constants::FILE_MAX_SIZE_MB * 1000000
|
if file_size > Constants::FILE_MAX_SIZE_MB.megabytes
|
||||||
@protocolsio_too_big = true
|
@protocolsio_too_big = true
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.js {}
|
format.js {}
|
||||||
|
|
Loading…
Reference in a new issue