From 6c7d47d3740ff08d794dda18851ba48f17dffe0f Mon Sep 17 00:00:00 2001 From: "shiweisong.ssw" Date: Wed, 28 Jun 2023 17:15:47 +0800 Subject: [PATCH] fix: change the content type --- datacenter/app/datastores/documents/page.tsx | 2 +- datacenter/app/datastores/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datacenter/app/datastores/documents/page.tsx b/datacenter/app/datastores/documents/page.tsx index 26d002302..930595995 100644 --- a/datacenter/app/datastores/documents/page.tsx +++ b/datacenter/app/datastores/documents/page.tsx @@ -352,7 +352,7 @@ const Documents = () => { { method: 'POST', headers: { - 'Content-Type': 'application/json' + 'Content-Type': 'multipart/form-data' }, body: JSON.stringify({ doc_name: documentName, diff --git a/datacenter/app/datastores/page.tsx b/datacenter/app/datastores/page.tsx index 87de5cf3e..4593c647b 100644 --- a/datacenter/app/datastores/page.tsx +++ b/datacenter/app/datastores/page.tsx @@ -349,7 +349,7 @@ const Index = () => { { method: 'POST', headers: { - 'Content-Type': 'application/json' + 'Content-Type': 'multipart/form-data' }, body: JSON.stringify({ doc_name: documentName,