DBFILESUploadWriteFailed

@interface 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 (readonly, nonatomic) DBFILESWriteError *_Nonnull reason;

    Swift

    var reason: DBFILESWriteError { get }
  • The upload session ID; this may be used to retry the commit.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) 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; this may be used to retry the commit.

    Return Value

    An initialized instance.