Skip to content

Commit

Permalink
fix(neon_files): Pass file size when uploading from memory
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed May 1, 2024
1 parent 6017f6d commit d99101c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/neon/neon_files/lib/src/utils/task.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class FilesUploadTaskMemory extends FilesTaskMemory implements FilesUploadTask {
}

@override
final int? size;
final int size;

@override
final tz.TZDateTime? lastModified;
Expand All @@ -138,6 +138,7 @@ class FilesUploadTaskMemory extends FilesTaskMemory implements FilesUploadTask {
_stream.stream,
uri,
lastModified: lastModified,
contentLength: size,
onProgress: progressController.add,
);
await progressController.close();
Expand Down

0 comments on commit d99101c

Please sign in to comment.