Upgrade to webdav-client V5
Opened this issue · 1 comments
n-peugnet commented
webdav-client v5 has some breaking changes that affect us quite a lot:
Breaking changes:
[...]
- Upload progress no longer supported (
onUploadProgress
): perry-mitchell/webdav-client#319 (comment)[...]
A workaround is suggested, by using a ReadableStream in the body of the Request element but this is not supported by Firefox nor Safari as to now12.
See also:
- whatwg/fetch#1438
- https://stackoverflow.com/questions/35711724/upload-progress-indicators-for-fetch
- https://github.com/teil-one/fetch-api-progress
Footnotes
-
https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#browser_compatibility, look for the "Send
ReadableStream
in request body" in the compatibility table ↩ -
https://caniuse.com/mdn-api_request_request_request_body_readablestream ↩
ArcticLampyrid commented
Note that fetch with ReadableStream
is not supported with HTTP 1.x
https://developer.chrome.com/docs/capabilities/web-apis/fetch-streaming-requests?hl=en