Skip to content

Commit 77fbe41

Browse files
test flutter web chunked upload issue
1 parent f8480fd commit 77fbe41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
156156

157157
while (offset < size) {
158158
var chunk;
159-
final end = min(offset + CHUNK_SIZE-1, size-1);
159+
final end = min(offset + CHUNK_SIZE, size);
160160
chunk = file.bytes!.getRange(offset, end).toList();
161161
params[paramName] =
162162
http.MultipartFile.fromBytes(paramName, chunk, filename: file.filename);

0 commit comments

Comments
 (0)