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 59254d9 commit a699a85Copy full SHA for a699a85
src/templates/core/functions/getFormData.hbs
@@ -6,7 +6,10 @@ const getFormData = (options: ApiRequestOptions): FormData | undefined => {
6
if (isString(value) || isBlob(value)) {
7
formData.append(key, value);
8
} else {
9
- formData.append(key, JSON.stringify(value));
+ formData.append(
10
+ key,
11
+ new Blob([JSON.stringify(value)], { type: 'application/json' })
12
+ );
13
}
14
};
15
0 commit comments