Skip to content

Commit

Permalink
refactor: send imageName, imageSize, uploadIdentifier as body to the …
Browse files Browse the repository at this point in the history
…OCR POST API #2057 #2075
  • Loading branch information
arealclimber committed Aug 15, 2024
1 parent 2c84db5 commit 5eefaa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iSunFA",
"version": "0.8.0+7",
"version": "0.8.0+8",
"private": false,
"scripts": {
"dev": "next dev",
Expand Down
6 changes: 3 additions & 3 deletions src/components/journal_upload_area/journal_upload_area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5eefaa4

Please sign in to comment.