From 81fc48aa58d932a19fb578e47170c06b3992d03a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 4 Oct 2022 00:42:00 -0700 Subject: refactoring --- src/lib/upload.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/lib/upload.js') 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); -- cgit v1.2.3