UploadSession
public class UploadSession : BoxModel
Session object for chunked upload.
-
Internal struct containing URLs for upload session manipulation
See moreDeclaration
Swift
public struct UploadSessionEndpoints : BoxInnerModel
-
Declaration
Swift
public private(set) var rawData: [String : Any] { get }
-
Box item type
Declaration
Swift
public var type: String
-
Identifier
Declaration
Swift
public let id: String
-
Count of uploaded parts
Declaration
Swift
public let totalParts: Int
-
Size of uploaded part. Each part’s size must be exactly equal in size to the part size specified in the response to the create session request. The last part of the file is exempt from this restriction and is allowed to be smaller.
Declaration
Swift
public let partSize: Int
-
Number of parts processed
Declaration
Swift
public let numPartsProcessed: Int
-
The validity end of this session
Declaration
Swift
public let sessionExpiresAt: Date
-
Set of URL for upload session management
Declaration
Swift
public let sessionEndpoints: UploadSessionEndpoints
-
Initializer.
Throws
Decoding error.Declaration
Swift
public required init(json: [String : Any]) throws
Parameters
json
JSON dictionary.