mobbdev 0.0.56 → 0.0.58
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/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2060,7 +2060,9 @@ async function uploadFile({
|
|
|
2060
2060
|
Object.entries(uploadFields).forEach(([key, value]) => {
|
|
2061
2061
|
form.append(key, value);
|
|
2062
2062
|
});
|
|
2063
|
-
form.
|
|
2063
|
+
if (!form.has("key")) {
|
|
2064
|
+
form.append("key", uploadKey);
|
|
2065
|
+
}
|
|
2064
2066
|
if (typeof file === "string") {
|
|
2065
2067
|
debug7("upload file from path %s", file);
|
|
2066
2068
|
form.append("file", await fileFrom(file));
|