Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codeneix committed Nov 8, 2023
1 parent cfbd6af commit fb9e959
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/web/src/image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fb9e959

Please sign in to comment.