DBFILESUploadWriteFailed
Objective-C
@interface DBFILESUploadWriteFailed : NSObject <DBSerializable, NSCopying>
Swift
class DBFILESUploadWriteFailed : NSObject, DBSerializable, NSCopying
The UploadWriteFailed
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
The reason why the file couldn’t be saved.
Declaration
Objective-C
@property (nonatomic, readonly) DBFILESWriteError *_Nonnull reason;
Swift
var reason: DBFILESWriteError { get }
-
The upload session ID; data has already been uploaded to the corresponding upload session and this ID may be used to retry the commit with
uploadSessionFinish
.Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull uploadSessionId;
Swift
var uploadSessionId: String { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithReason:(nonnull DBFILESWriteError *)reason uploadSessionId:(nonnull NSString *)uploadSessionId;
Swift
init(reason: DBFILESWriteError, uploadSessionId: String)
Parameters
reason
The reason why the file couldn’t be saved.
uploadSessionId
The upload session ID; data has already been uploaded to the corresponding upload session and this ID may be used to retry the commit with
uploadSessionFinish
.Return Value
An initialized instance.