mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-02 08:51:16 +00:00
fix: enable xhr with credentials when putting file
This commit is contained in:
@@ -68,6 +68,7 @@ function putFile({
|
||||
}): Promise<void> {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
const xhr = new XMLHttpRequest()
|
||||
xhr.withCredentials = true
|
||||
xhr.upload.addEventListener("progress", (e) => {
|
||||
onProgress(e.loaded / e.total)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user