set fileSizeORMultiplier to 2

This commit is contained in:
Ryan ZHAO 2020-11-11 09:41:57 +11:00
parent dcdf603a19
commit 2915a51a28

View file

@ -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"