Replace deprecated HTTP progress option

This commit is contained in:
Alexander Brandon Coles
2026-06-07 22:51:16 +01:00
parent 700d94d833
commit 21bf9e8466
6 changed files with 12 additions and 6 deletions
@@ -118,7 +118,8 @@ export class FogUploadService extends OpUploadService {
observe: 'events',
headers: { [EXTERNAL_REQUEST_HEADER]: 'true' },
responseType: 'text',
reportProgress: true,
reportUploadProgress: true,
reportDownloadProgress: true,
},
);
}
@@ -68,7 +68,8 @@ export class LocalUploadService extends OpUploadService {
observe: 'events',
withCredentials: true,
responseType: 'json',
reportProgress: true,
reportUploadProgress: true,
reportDownloadProgress: true,
},
).pipe(share());
}
@@ -65,7 +65,8 @@ export class NextcloudUploadStrategy implements IUploadStrategy {
body,
headers: { [EXTERNAL_REQUEST_HEADER]: 'true' },
observe: 'events',
reportProgress: true,
reportUploadProgress: true,
reportDownloadProgress: true,
responseType: 'json',
},
).pipe(
@@ -65,7 +65,8 @@ export class OneDriveUploadStrategy implements IUploadStrategy {
'Content-Range': contentRangeHeader,
},
observe: 'events',
reportProgress: true,
reportUploadProgress: true,
reportDownloadProgress: true,
responseType: 'json',
},
).pipe(
@@ -65,7 +65,8 @@ export class SharepointUploadStrategy implements IUploadStrategy {
'Content-Range': contentRangeHeader,
},
observe: 'events',
reportProgress: true,
reportUploadProgress: true,
reportDownloadProgress: true,
responseType: 'json',
},
).pipe(
@@ -62,7 +62,8 @@ export class AvatarUploadService extends OpUploadService {
observe: 'events',
withCredentials: true,
responseType: 'text',
reportProgress: true,
reportUploadProgress: true,
reportDownloadProgress: true,
},
).pipe(share()) as Observable<HttpEvent<T>>;
}