From 5eefaa4f5c28560bc9dbc8b125efa3729ae4407a Mon Sep 17 00:00:00 2001 From: arealclimber Date: Thu, 15 Aug 2024 16:46:00 +0800 Subject: [PATCH] refactor: send imageName, imageSize, uploadIdentifier as body to the OCR POST API #2057 #2075 --- package.json | 2 +- src/components/journal_upload_area/journal_upload_area.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e2b65616b..9cb3653aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iSunFA", - "version": "0.8.0+7", + "version": "0.8.0+8", "private": false, "scripts": { "dev": "next dev", diff --git a/src/components/journal_upload_area/journal_upload_area.tsx b/src/components/journal_upload_area/journal_upload_area.tsx index 272cf9237..920dd4d33 100644 --- a/src/components/journal_upload_area/journal_upload_area.tsx +++ b/src/components/journal_upload_area/journal_upload_area.tsx @@ -86,9 +86,9 @@ const JournalUploadArea = () => { const uuid = uuidv4(); formData.append('image', uploadFile.file); // TODO: in dev (20240815 - Shirley) 加上 imageSize, imageName, uploadIdentifier - // formData.append('imageSize', uploadFile.size); - // formData.append('imageName', uploadFile.name); - // formData.append('uploadIdentifier', uuid); + formData.append('imageSize', uploadFile.size); + formData.append('imageName', uploadFile.name); + formData.append('uploadIdentifier', uuid); // eslint-disable-next-line no-console // console.log('formData', formData);