diff --git a/backend/crypt/crypt.go b/backend/crypt/crypt.go index 227a42587..2c40a1835 100644 --- a/backend/crypt/crypt.go +++ b/backend/crypt/crypt.go @@ -999,6 +999,9 @@ func (o *ObjectInfo) Size() int64 { if size < 0 { return size } + if o.f.opt.NoDataEncryption { + return size + } return o.f.cipher.EncryptedSize(size) }