From fbf3cef47c612b9c334917f10c810c797fc77da6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 20 Feb 2024 19:53:49 -0800 Subject: items --- src/lib/upload.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/upload.js b/src/lib/upload.js index 552e4a7a..31c235c6 100644 --- a/src/lib/upload.js +++ b/src/lib/upload.js @@ -1,4 +1,4 @@ -export const upload = async (file, type, progress, token) => { +export const upload = async (file, type, progress) => { let url = `/api/upload/${type}`; let formData = new FormData(); formData.append("file", file); @@ -13,7 +13,6 @@ export const upload = async (file, type, progress, token) => { }); ajax.upload.addEventListener("progress", progress, false); ajax.open("POST", url); - // ajax.setRequestHeader('Authorization', `Bearer ${token}`); ajax.send(formData); }); }; -- cgit v1.2.3