diff options
Diffstat (limited to 'src/lib/upload.js')
| -rw-r--r-- | src/lib/upload.js | 3 |
1 files changed, 1 insertions, 2 deletions
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); }); }; |
