1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

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;