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