@base-web-kits/base-tools-web 1.2.3 → 1.2.5
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.
- package/dist/base-tools-web.umd.global.js +1 -1
- package/dist/base-tools-web.umd.global.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/network/uploadFile.d.ts +5 -2
- package/dist/network/uploadFile.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/web/network/uploadFile.ts +8 -3
|
@@ -2157,12 +2157,12 @@ var baseToolsWeb = (() => {
|
|
|
2157
2157
|
}
|
|
2158
2158
|
xhr.timeout = timeout2;
|
|
2159
2159
|
const data = new FormData();
|
|
2160
|
-
data.append(name, file);
|
|
2161
2160
|
if (formData) {
|
|
2162
2161
|
Object.entries(formData).forEach(([k, v]) => {
|
|
2163
2162
|
if (v !== void 0 && v !== null) data.append(k, String(v));
|
|
2164
2163
|
});
|
|
2165
2164
|
}
|
|
2165
|
+
data.append(name, file);
|
|
2166
2166
|
xhr.send(data);
|
|
2167
2167
|
});
|
|
2168
2168
|
}
|