Skip to content

Commit

Permalink
This part of document is outdated(compared to version 2.30.0), becaus… (
Browse files Browse the repository at this point in the history
#695)

The document is outdated(compare to SDK version 2.30.1), for example, BoxFileUploadSession#uploadPart does not have  parameter "partId" and type of "partSize" is int instead of long.
  • Loading branch information
LeasyZhang authored and Cary Cheng committed Apr 12, 2019
1 parent 04d5406 commit 8ce308f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,8 @@ while (processed < fileSize) {
partSize = diff;
}

//Generate a unique part ID
String partId = LargeFileUpload.generateHex();
//Upload a part. It can be uploaded asynchorously
BoxFileUploadSessionPart part = session.uploadPart(partId, dis, offset, partSize, fileSize);
BoxFileUploadSessionPart part = session.uploadPart(dis, offset, (int)partSize, fileSize);
parts.add(part);

//Increase the offset and proceesed bytes to calculate the Content-Range header.
Expand Down

0 comments on commit 8ce308f

Please sign in to comment.