Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
m-chadda committed Sep 4, 2024
1 parent cf2024a commit 2a07e23
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/web/src/services/uploadFileApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function uploadFile(payload: UploadForm): Promise<TaskResponse> {
formData.append(key, value);
}
}

console.log(formData);
const { data } = await axiosInstance.post("/api/task", formData);
return data;
}
Expand All @@ -31,4 +31,3 @@ export async function getPDF(fileUrl: string): Promise<File> {
const { data } = await axiosInstance.get(fileUrl, { responseType: "blob" });
return new File([data], "document.pdf", { type: data.type });
}

0 comments on commit 2a07e23

Please sign in to comment.