projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '14013-upload-collection-files-using-webdav'
[arvados-workbench2.git]
/
src
/
common
/
webdav.ts
diff --git
a/src/common/webdav.ts
b/src/common/webdav.ts
index 57caebc839e433f29ee26e13c5163e71270241dc..27e1f22de5be8c642072d7ae42b80f9189fe524b 100644
(file)
--- a/
src/common/webdav.ts
+++ b/
src/common/webdav.ts
@@
-58,8
+58,8
@@
export class WebDAV {
.keys(headers)
.forEach(key => r.setRequestHeader(key, headers[key]));
.keys(headers)
.forEach(key => r.setRequestHeader(key, headers[key]));
- if (config.onProgress) {
- r.
addEventListener('progress', config.on
Progress);
+ if (config.on
Upload
Progress) {
+ r.
upload.addEventListener('progress', config.onUpload
Progress);
}
r.addEventListener('load', () => resolve(r));
}
r.addEventListener('load', () => resolve(r));
@@
-73,7
+73,7
@@
export interface WebDAVRequestConfig {
headers?: {
[key: string]: string;
};
headers?: {
[key: string]: string;
};
- onProgress?: (event: ProgressEvent) => void;
+ on
Upload
Progress?: (event: ProgressEvent) => void;
}
interface WebDAVDefaults {
}
interface WebDAVDefaults {
@@
-86,5
+86,5
@@
interface RequestConfig {
url: string;
headers?: { [key: string]: string };
data?: any;
url: string;
headers?: { [key: string]: string };
data?: any;
- onProgress?: (event: ProgressEvent) => void;
+ on
Upload
Progress?: (event: ProgressEvent) => void;
}
}