MCPcopy Create free account
hub / github.com/CapSoftware/Cap / handleFileChange

Function handleFileChange

apps/web/components/tools/TrimmingTool.tsx:69–74  ·  view source on GitHub ↗
(e: React.ChangeEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

67 };
68
69 const handleFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {
70 const selectedFile = e.target.files?.[0];
71 if (selectedFile) {
72 processFile(selectedFile);
73 }
74 };
75
76 const cleanupResources = () => {
77 if (fileState.videoSrc) {

Callers

nothing calls this directly

Calls 1

processFileFunction · 0.85

Tested by

no test coverage detected