We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa1ba43 commit bf513e7Copy full SHA for bf513e7
js/upload/xhr.ts
@@ -80,7 +80,14 @@ export default function xhr({
80
// set send data
81
const formData = new FormData();
82
Object.keys(requestData).forEach((key) => {
83
- formData.append(key, requestData[key]);
+ const dataValue = requestData[key];
84
+ if (Array.isArray(dataValue)) {
85
+ dataValue.forEach((value) => {
86
+ formData.append(key, value);
87
+ });
88
+ } else {
89
+ formData.append(key, dataValue);
90
+ }
91
});
92
93
xhr.open(method, action, true);
0 commit comments