committed by
Nicolás Hatcher Andrés
parent
ffa93309e2
commit
9e5b959ccc
@@ -3,7 +3,7 @@ export async function uploadFile(
|
|||||||
fileName: string,
|
fileName: string,
|
||||||
): Promise<Blob> {
|
): Promise<Blob> {
|
||||||
// Fetch request to upload the file
|
// Fetch request to upload the file
|
||||||
const response = await fetch("/api/upload", {
|
const response = await fetch(`/api/upload/${fileName}`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/octet-stream",
|
"Content-Type": "application/octet-stream",
|
||||||
|
|||||||
Reference in New Issue
Block a user