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 | f91b6cfc87ae35bc85472422f73e328778fa4a9e (patch) | |
| tree | 30b06d929a175f0e74ef1da87e3d474f9068ad6c /src/lib/upload.js | |
| parent | 61bd51f870143bc5050946d3a012b08708aac4d1 (diff) | |
| download | coinos-ui-f91b6cfc87ae35bc85472422f73e328778fa4a9e.tar.gz coinos-ui-f91b6cfc87ae35bc85472422f73e328778fa4a9e.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); |
