From b466b3d39c3b9ec792ef924c7f4750fb70b6a016 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 15 Nov 2023 23:02:29 -0800 Subject: prefill register page --- src/lib/upload.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/upload.js') diff --git a/src/lib/upload.js b/src/lib/upload.js index d8b27061..92f5290f 100644 --- a/src/lib/upload.js +++ b/src/lib/upload.js @@ -1,5 +1,4 @@ export const upload = async (file, type, progress, token) => { - console.log('TYPE', type); let url = `/api/upload/${type}`; let formData = new FormData(); formData.append('file', file); @@ -14,7 +13,7 @@ export const upload = async (file, type, progress, token) => { }); ajax.upload.addEventListener('progress', progress, false); ajax.open('POST', url); - ajax.setRequestHeader('Authorization', `Bearer ${token}`); + // ajax.setRequestHeader('Authorization', `Bearer ${token}`); ajax.send(formData); }); }; -- cgit v1.2.3