diff options
| author | Adam Soltys <[email protected]> | 2024-02-20 19:53:49 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-04-25 12:43:02 -0700 |
| commit | 2ef0d75f69051e267f534d07c535a053f064778d (patch) | |
| tree | cacac0c117679941e536539aebecee729edad6f7 /src/lib | |
| parent | 3e3f89bdb199dd18b47f6e1c7883bbbc9bcecefc (diff) | |
| download | coinos-ui-2ef0d75f69051e267f534d07c535a053f064778d.tar.gz coinos-ui-2ef0d75f69051e267f534d07c535a053f064778d.zip | |
items
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); }); }; |
