whio-api-sdk 1.0.214-beta-staging → 1.0.216-beta-staging
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -96,7 +96,9 @@ export class BaseClient {
|
|
|
96
96
|
}
|
|
97
97
|
return new Promise((resolve, reject) => {
|
|
98
98
|
const xhr = new XMLHttpRequest();
|
|
99
|
+
console.log('Uploading file to:', url);
|
|
99
100
|
xhr.upload.addEventListener('progress', (event) => {
|
|
101
|
+
console.log('Upload progress:', event);
|
|
100
102
|
if (event.lengthComputable && onProgress) {
|
|
101
103
|
const percentage = Math.round((event.loaded / event.total) * 100);
|
|
102
104
|
onProgress(percentage);
|
package/package.json
CHANGED
|
@@ -106,8 +106,9 @@ export class BaseClient {
|
|
|
106
106
|
|
|
107
107
|
return new Promise((resolve, reject) => {
|
|
108
108
|
const xhr = new XMLHttpRequest();
|
|
109
|
-
|
|
109
|
+
console.log('Uploading file to:', url);
|
|
110
110
|
xhr.upload.addEventListener('progress', (event) => {
|
|
111
|
+
console.log('Upload progress:', event);
|
|
111
112
|
if (event.lengthComputable && onProgress) {
|
|
112
113
|
const percentage = Math.round((event.loaded / event.total) * 100);
|
|
113
114
|
onProgress(percentage);
|