This commit is contained in:
Kenneth Jannette
2024-02-09 13:49:59 -06:00
parent ace0cc89e5
commit 896c28fb24
5 changed files with 13 additions and 5 deletions

View File

@@ -69,13 +69,16 @@ const UploadModal = (props) => {
setFileToParse(file);
setFileChanged(true);
}
//
async function uploadFile(file) {
try {
const response = await fetch(`${apiUrl}/v1/parseNewDoc`, {
method: "POST",
body: file,
});
const response = await fetch(
`https://www.novodraft.ai:3001/v1/parseNewDoc`,
{
method: "POST",
body: file,
}
);
const res = response;
return res;
} catch (error) {