diff options
Diffstat (limited to 'src/lib')
| -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 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); }); }; |
