From 184ec66d228b9a2bbf8bc2753efba740fdb0bc91 Mon Sep 17 00:00:00 2001 From: "shiweisong.ssw" Date: Wed, 28 Jun 2023 17:41:57 +0800 Subject: [PATCH] feat: add boundary --- 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 930595995..e64bcb1b5 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': 'multipart/form-data' + 'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' }, body: JSON.stringify({ doc_name: documentName, diff --git a/datacenter/app/datastores/page.tsx b/datacenter/app/datastores/page.tsx index 4593c647b..69913be2d 100644 --- a/datacenter/app/datastores/page.tsx +++ b/datacenter/app/datastores/page.tsx @@ -349,7 +349,7 @@ const Index = () => { { method: 'POST', headers: { - 'Content-Type': 'multipart/form-data' + 'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' }, body: JSON.stringify({ doc_name: documentName,