Fixed unit error;Now when comparing file size, both are in bytes

This commit is contained in:
Zanz2 2017-11-16 01:34:38 +01:00
parent 4d65ad59fe
commit 41c1193a78

View file

@ -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 * 1000000
@protocolsio_too_big = true
respond_to do |format|
format.js {}