MCPcopy Create free account
hub / github.com/IamIsPra/tinywebp / handleFileSelect

Function handleFileSelect

src/pages/Home.tsx:76–80  ·  view source on GitHub ↗
(event: React.ChangeEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

74 }, []);
75
76 const handleFileSelect = async (event: React.ChangeEvent<HTMLInputElement>) => {
77 const files = event.target.files;
78 if (!files) return;
79 await processFiles(Array.from(files));
80 };
81
82 const handleDrop = async (event: React.DragEvent) => {
83 event.preventDefault();

Callers

nothing calls this directly

Calls 1

processFilesFunction · 0.85

Tested by

no test coverage detected