mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 15:05:26 +08:00
Merge branch 'master' of https://github.com/biosistemika/scinote-web into validations_cutoff_SCI-1784
This commit is contained in:
commit
b2e1623cf1
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…
Reference in a new issue