@@ -3158,7 +3158,8 @@ type UploadError struct {
31583158 dropbox.Tagged
31593159 // Path : Unable to save the uploaded contents to a file.
31603160 Path * UploadWriteFailed `json:"path,omitempty"`
3161- // PropertiesError : The supplied property group is invalid.
3161+ // PropertiesError : The supplied property group is invalid. The file has
3162+ // uploaded without property groups.
31623163 PropertiesError * file_properties.InvalidPropertyGroupError `json:"properties_error,omitempty"`
31633164}
31643165
@@ -3175,7 +3176,8 @@ func (u *UploadError) UnmarshalJSON(body []byte) error {
31753176 dropbox.Tagged
31763177 // Path : Unable to save the uploaded contents to a file.
31773178 Path json.RawMessage `json:"path,omitempty"`
3178- // PropertiesError : The supplied property group is invalid.
3179+ // PropertiesError : The supplied property group is invalid. The file
3180+ // has uploaded without property groups.
31793181 PropertiesError json.RawMessage `json:"properties_error,omitempty"`
31803182 }
31813183 var w wrap
@@ -3206,7 +3208,8 @@ type UploadErrorWithProperties struct {
32063208 dropbox.Tagged
32073209 // Path : Unable to save the uploaded contents to a file.
32083210 Path * UploadWriteFailed `json:"path,omitempty"`
3209- // PropertiesError : The supplied property group is invalid.
3211+ // PropertiesError : The supplied property group is invalid. The file has
3212+ // uploaded without property groups.
32103213 PropertiesError * file_properties.InvalidPropertyGroupError `json:"properties_error,omitempty"`
32113214}
32123215
@@ -3223,7 +3226,8 @@ func (u *UploadErrorWithProperties) UnmarshalJSON(body []byte) error {
32233226 dropbox.Tagged
32243227 // Path : Unable to save the uploaded contents to a file.
32253228 Path json.RawMessage `json:"path,omitempty"`
3226- // PropertiesError : The supplied property group is invalid.
3229+ // PropertiesError : The supplied property group is invalid. The file
3230+ // has uploaded without property groups.
32273231 PropertiesError json.RawMessage `json:"properties_error,omitempty"`
32283232 }
32293233 var w wrap
@@ -3467,14 +3471,20 @@ type UploadSessionFinishError struct {
34673471 // LookupFailed : The session arguments are incorrect; the value explains
34683472 // the reason.
34693473 LookupFailed * UploadSessionLookupError `json:"lookup_failed,omitempty"`
3470- // Path : Unable to save the uploaded contents to a file.
3474+ // Path : Unable to save the uploaded contents to a file. Data has already
3475+ // been appended to the upload session. Please retry with empty data body
3476+ // and updated offset.
34713477 Path * WriteError `json:"path,omitempty"`
3478+ // PropertiesError : The supplied property group is invalid. The file has
3479+ // uploaded without property groups.
3480+ PropertiesError * file_properties.InvalidPropertyGroupError `json:"properties_error,omitempty"`
34723481}
34733482
34743483// Valid tag values for UploadSessionFinishError
34753484const (
34763485 UploadSessionFinishErrorLookupFailed = "lookup_failed"
34773486 UploadSessionFinishErrorPath = "path"
3487+ UploadSessionFinishErrorPropertiesError = "properties_error"
34783488 UploadSessionFinishErrorTooManySharedFolderTargets = "too_many_shared_folder_targets"
34793489 UploadSessionFinishErrorTooManyWriteOperations = "too_many_write_operations"
34803490 UploadSessionFinishErrorOther = "other"
@@ -3487,8 +3497,13 @@ func (u *UploadSessionFinishError) UnmarshalJSON(body []byte) error {
34873497 // LookupFailed : The session arguments are incorrect; the value
34883498 // explains the reason.
34893499 LookupFailed json.RawMessage `json:"lookup_failed,omitempty"`
3490- // Path : Unable to save the uploaded contents to a file.
3500+ // Path : Unable to save the uploaded contents to a file. Data has
3501+ // already been appended to the upload session. Please retry with empty
3502+ // data body and updated offset.
34913503 Path json.RawMessage `json:"path,omitempty"`
3504+ // PropertiesError : The supplied property group is invalid. The file
3505+ // has uploaded without property groups.
3506+ PropertiesError json.RawMessage `json:"properties_error,omitempty"`
34923507 }
34933508 var w wrap
34943509 var err error
@@ -3506,6 +3521,12 @@ func (u *UploadSessionFinishError) UnmarshalJSON(body []byte) error {
35063521 case "path" :
35073522 err = json .Unmarshal (w .Path , & u .Path )
35083523
3524+ if err != nil {
3525+ return err
3526+ }
3527+ case "properties_error" :
3528+ err = json .Unmarshal (w .PropertiesError , & u .PropertiesError )
3529+
35093530 if err != nil {
35103531 return err
35113532 }
@@ -3529,6 +3550,7 @@ const (
35293550 UploadSessionLookupErrorIncorrectOffset = "incorrect_offset"
35303551 UploadSessionLookupErrorClosed = "closed"
35313552 UploadSessionLookupErrorNotClosed = "not_closed"
3553+ UploadSessionLookupErrorTooLarge = "too_large"
35323554 UploadSessionLookupErrorOther = "other"
35333555)
35343556
@@ -3605,8 +3627,9 @@ func NewUploadSessionStartResult(SessionId string) *UploadSessionStartResult {
36053627type UploadWriteFailed struct {
36063628 // Reason : The reason why the file couldn't be saved.
36073629 Reason * WriteError `json:"reason"`
3608- // UploadSessionId : The upload session ID; this may be used to retry the
3609- // commit.
3630+ // UploadSessionId : The upload session ID; data has already been uploaded
3631+ // to the corresponding upload session and this ID may be used to retry the
3632+ // commit with `uploadSessionFinish`.
36103633 UploadSessionId string `json:"upload_session_id"`
36113634}
36123635
0 commit comments