mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Replace deprecated HTTP progress option
This commit is contained in:
@@ -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>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user