diff --git a/packages/nextcloud/lib/src/webdav/client.dart b/packages/nextcloud/lib/src/webdav/client.dart index 6d1b49b0..87fc020e 100644 --- a/packages/nextcloud/lib/src/webdav/client.dart +++ b/packages/nextcloud/lib/src/webdav/client.dart @@ -189,7 +189,7 @@ class WebDavClient { file.openRead().map((final chunk) { uploaded += chunk.length; onProgress?.call(uploaded / fileStat.size); - return Uint8List.fromList(chunk); + return chunk as Uint8List; }), path, lastModified: lastModified,