diff --git a/es/utils/upload.web.js b/es/utils/upload.web.js index 94381ab0..b625d828 100644 --- a/es/utils/upload.web.js +++ b/es/utils/upload.web.js @@ -9,7 +9,7 @@ export class Upload { body: formData2, method: 'POST', }; - const json = await (await fetch(uploadUrl, options)).json(); - return json; + const result = await fetch(uploadUrl, options); + return result; } } diff --git a/lib/utils/upload.web.js b/lib/utils/upload.web.js index aff055cf..43ca1c42 100644 --- a/lib/utils/upload.web.js +++ b/lib/utils/upload.web.js @@ -12,8 +12,8 @@ class Upload { body: formData2, method: 'POST', }; - const json = await (await fetch(uploadUrl, options)).json(); - return json; + const result = await fetch(uploadUrl, options); + return result; } } exports.Upload = Upload; diff --git a/src/utils/upload.web.ts b/src/utils/upload.web.ts index b10b179a..f4e21d14 100644 --- a/src/utils/upload.web.ts +++ b/src/utils/upload.web.ts @@ -19,7 +19,7 @@ export class Upload { method: 'POST', }; - const json = await (await fetch(uploadUrl, options)).json(); - return json; + const result = await fetch(uploadUrl, options); + return result; } }