diff --git a/web/src/routes/editor/MediaPicker.svelte b/web/src/routes/editor/MediaPicker.svelte
index f2ce85878..bcef97d2c 100644
--- a/web/src/routes/editor/MediaPicker.svelte
+++ b/web/src/routes/editor/MediaPicker.svelte
@@ -2,28 +2,16 @@
import { createEventDispatcher } from 'svelte';
import IconPhoto from '@tabler/icons-svelte/dist/svelte/icons/IconPhoto.svelte';
- export let mediaFiles: File[] = [];
-
let input: HTMLInputElement | undefined;
let files: FileList;
const dispatch = createEventDispatcher();
-
- function upload() {
- dispatch('pick', files);
- console.log('[media upload]', files);
- for (const file of files) {
- console.log('[media upload file]', file);
- mediaFiles.push(file);
- mediaFiles = mediaFiles;
- }
- }
-
+ dispatch('pick', files)} accept="image/*" hidden>