Update frontend/src/hooks/tools/ocr/useOCROperation.ts

Co-authored-by: James Brunton <jbrunton96@gmail.com>
This commit is contained in:
ConnorYoh 2025-08-15 12:28:25 +01:00 committed by GitHub
parent b05c39c712
commit 4637ffdf3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,6 @@ function stripExt(name: string): string {
return i > 0 ? name.slice(0, i) : name; return i > 0 ? name.slice(0, i) : name;
} }
// Signature must be (file, params) to match useToolApiCalls interface
const buildFormData = (parameters: OCRParameters, file: File): FormData => { const buildFormData = (parameters: OCRParameters, file: File): FormData => {
const formData = new FormData(); const formData = new FormData();
formData.append('fileInput', file); formData.append('fileInput', file);