diff options
| author | Adam Soltys <[email protected]> | 2022-10-04 00:42:00 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-04 00:42:00 -0700 |
| commit | 81fc48aa58d932a19fb578e47170c06b3992d03a (patch) | |
| tree | 30b06d929a175f0e74ef1da87e3d474f9068ad6c /src/lib/upload.js | |
| parent | 63f1a6780bab85ebb48ca1fc142cc6beaf772faa (diff) | |
| download | coinos-ui-81fc48aa58d932a19fb578e47170c06b3992d03a.tar.gz coinos-ui-81fc48aa58d932a19fb578e47170c06b3992d03a.zip | |
refactoring
Diffstat (limited to 'src/lib/upload.js')
| -rw-r--r-- | src/lib/upload.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/upload.js b/src/lib/upload.js index d43148fb..4b03059c 100644 --- a/src/lib/upload.js +++ b/src/lib/upload.js @@ -1,7 +1,4 @@ -import { get } from 'svelte/store'; -import { token } from '$lib/store'; - -export const upload = async (file, type, progress) => { +export const upload = async (file, type, progress, token) => { let url = `/api/upload/${type}`; let formData = new FormData(); formData.append('file', file); |
