fix
This commit is contained in:
parent
bb10d4d185
commit
b762929cc0
|
|
@ -50,7 +50,7 @@ export function uploadFile(file: File | Blob, options: {
|
||||||
|
|
||||||
signal.addEventListener('abort', () => {
|
signal.addEventListener('abort', () => {
|
||||||
reject(new UploadAbortedError());
|
reject(new UploadAbortedError());
|
||||||
});
|
}, { once: true });
|
||||||
|
|
||||||
xhr.open('POST', apiUrl + '/drive/files/create', true);
|
xhr.open('POST', apiUrl + '/drive/files/create', true);
|
||||||
xhr.onload = ((ev: ProgressEvent<XMLHttpRequest>) => {
|
xhr.onload = ((ev: ProgressEvent<XMLHttpRequest>) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue