feat(mobile): uploading files in chunk (#2101)

This commit is contained in:
Parikshit Misra 2023-03-29 00:11:55 +05:30 committed by GitHub
parent 9adbbd42be
commit b49f66bbc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -243,6 +243,7 @@ class BackupService {
); );
req.headers["Authorization"] = req.headers["Authorization"] =
"Bearer ${Store.get(StoreKey.accessToken)}"; "Bearer ${Store.get(StoreKey.accessToken)}";
req.headers["Transfer-Encoding"] = "chunked";
req.fields['deviceAssetId'] = entity.id; req.fields['deviceAssetId'] = entity.id;
req.fields['deviceId'] = deviceId; req.fields['deviceId'] = deviceId;