From fb9e9591d86788a94e5d5ed5642211420fccbfd5 Mon Sep 17 00:00:00 2001 From: Nikhil Gupta Date: Wed, 8 Nov 2023 16:15:54 +0530 Subject: [PATCH] Minor fix --- examples/web/src/image/index.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/web/src/image/index.tsx b/examples/web/src/image/index.tsx index 493c8c4..9650c03 100644 --- a/examples/web/src/image/index.tsx +++ b/examples/web/src/image/index.tsx @@ -12,8 +12,6 @@ const ImageLoader = () => { const handleUpload = (e: any) => { const fileReader = new FileReader(); - const name = e.target.accept.includes('image') ? 'images' : 'videos'; - fileReader.readAsDataURL(e.target.files[0]); fileReader.onload = (e) => { const path = e.target?.result as string;