|
@@ -22,12 +22,12 @@ export const saveCard = async (datas, config = {}) => {
|
|
|
const val = datas[key];
|
|
|
if (key === "content") {
|
|
|
const file = new File([val], `${Date.now()}.json`, { type: "text/json" });
|
|
|
- formData.append(key, file);
|
|
|
+ formData.append(`${key}File`, file);
|
|
|
const md5 = await fileMD5(file);
|
|
|
formData.append(`${key}Md5`, md5);
|
|
|
} else if (key === "htmlContent") {
|
|
|
const file = new File([val], `${Date.now()}.html`, { type: "text/html" });
|
|
|
- formData.append(key, file);
|
|
|
+ formData.append(`${key}File`, file);
|
|
|
const md5 = await fileMD5(file);
|
|
|
formData.append(`${key}Md5`, md5);
|
|
|
} else {
|