Feature #14910
Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>
})
upload = (url: string, path: string, files: File[], config: WebDAVRequestConfig = {}) => {
})
upload = (url: string, path: string, files: File[], config: WebDAVRequestConfig = {}) => {
- return files.map(file => this.request({
- ...config, url,
- method: 'PUT',
- data: file
- }));
+ return Promise.all(
+ files.map(file => this.request({
+ ...config, url,
+ method: 'PUT',
+ data: file
+ }))
+ );
}
copy = (url: string, destination: string, config: WebDAVRequestConfig = {}) =>
}
copy = (url: string, destination: string, config: WebDAVRequestConfig = {}) =>