From c258952b90cbee4348666efc88b6fed582cf5535 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Mon, 2 Nov 2020 09:40:32 +1100 Subject: [PATCH] Increase file size OR multiplier again This shouldn't be necessary, but for some unknown reason things error out with the previous value --- 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 87a48f176..003785850 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 = 1.5 + public static let fileSizeORMultiplier: Double = 6 // 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"