diff options
| author | Adam Soltys <[email protected]> | 2024-02-20 19:53:49 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-02-20 19:53:49 -0800 |
| commit | fbf3cef47c612b9c334917f10c810c797fc77da6 (patch) | |
| tree | f10d545fae7305e624c91f5333f513d5dc95d413 /src/lib | |
| parent | 3fbd2514e38d29ff02cd7765d89476bed6530d37 (diff) | |
| download | coinos-ui-fbf3cef47c612b9c334917f10c810c797fc77da6.tar.gz coinos-ui-fbf3cef47c612b9c334917f10c810c797fc77da6.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); }); }; |
