mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Merge pull request #780 from oxen-io/fix/incorrect-fileserver-size-bug
Fix incorrect fileserver size bug
This commit is contained in:
commit
9a25688146
1 changed files with 4 additions and 1 deletions
|
@ -14,7 +14,10 @@ public final class FileServerAPI: NSObject {
|
|||
public static let oldServerPublicKey = "7cb31905b55cd5580c686911debf672577b3fb0bff81df4ce2d5c4cb3a7aaa69"
|
||||
@objc public static let server = "http://filev2.getsession.org"
|
||||
public static let serverPublicKey = "da21e1d886c6fbaea313f75298bd64aab03a97ce985b46bb2dad9f2089c8ee59"
|
||||
public static let maxFileSize = (10 * 1024 * 1024) // 10 MB
|
||||
|
||||
/// **Note:** The max file size is 10,000,000 bytes (rather than 10MiB which would be `(10 * 1024 * 1024)`), 10,000,000
|
||||
/// exactly will be fine but a single byte more will result in an error
|
||||
public static let maxFileSize = 10_000_000
|
||||
|
||||
/// Standard timeout is 10 seconds which is a little too short fir file upload/download with slightly larger files
|
||||
public static let fileTimeout: TimeInterval = 30
|
||||
|
|
Loading…
Reference in a new issue