mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
Update frontend/src/hooks/tools/ocr/useOCROperation.ts
Co-authored-by: James Brunton <jbrunton96@gmail.com>
This commit is contained in:
parent
b05c39c712
commit
4637ffdf3d
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user