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:
Zanz2 2017-11-16 18:11:09 +01:00 committed by GitHub
commit 038c15a1ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 / 1000 > Constants::FILE_MAX_SIZE_MB 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 {}