From 2915a51a287638d28ca25992fc5d8cc482ad850e Mon Sep 17 00:00:00 2001 From: Ryan ZHAO Date: Wed, 11 Nov 2020 09:41:57 +1100 Subject: [PATCH] set fileSizeORMultiplier to 2 --- SignalServiceKit/src/Loki/API/FileServerAPI.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SignalServiceKit/src/Loki/API/FileServerAPI.swift b/SignalServiceKit/src/Loki/API/FileServerAPI.swift index 003785850..0f378806d 100644 --- a/SignalServiceKit/src/Loki/API/FileServerAPI.swift +++ b/SignalServiceKit/src/Loki/API/FileServerAPI.swift @@ -16,7 +16,7 @@ public final class FileServerAPI : DotNetAPI { /// be other parameters in the request. On average the multiplier appears to be about 1.5, so when checking whether the file will exceed the file size limit when /// uploading a file we just divide the size of the file by this number. The alternative would be to actually check the size of the HTTP request but that's only /// possible after proof of work has been calculated and the onion request encryption has happened, which takes several seconds. - public static let fileSizeORMultiplier: Double = 6 // TODO: It should be possible to set this to 1.5? + public static let fileSizeORMultiplier: Double = 2 // TODO: It should be possible to set this to 1.5? @objc public static let server = "https://file.getsession.org" @objc public static let fileStorageBucketURL = "https://file-static.lokinet.org"