Skip to content

Commit

Permalink
Implement resumable-upload
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-pratik-k committed Jan 16, 2025
1 parent 4e5551f commit f6fc9ac
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 121 deletions.
5 changes: 1 addition & 4 deletions data/lib/apis/dropbox/dropbox_content_endpoints.dart
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ class DropboxStartUploadEndpoint extends Endpoint {
@override
Map<String, dynamic> get headers => {
'Content-Type': content.type,
'Content-Length': content.length,
};

@override
Expand Down Expand Up @@ -230,7 +229,6 @@ class DropboxAppendUploadEndpoint extends Endpoint {
},
}),
'Content-Type': content.type,
'Content-Length': content.length,
};

@override
Expand Down Expand Up @@ -280,7 +278,7 @@ class DropboxFinishUploadEndpoint extends Endpoint {
HttpMethod get method => HttpMethod.post;

@override
String get path => 'files/upload_session/finish';
String get path => '/files/upload_session/finish';

@override
Map<String, dynamic> get headers => {
Expand Down Expand Up @@ -310,7 +308,6 @@ class DropboxFinishUploadEndpoint extends Endpoint {
},
}),
'Content-Type': content.type,
'Content-Length': content.length,
};

@override
Expand Down
Loading

0 comments on commit f6fc9ac

Please sign in to comment.