MCPcopy Index your code
hub / github.com/cursor/community-plugins / handleFileInput

Function handleFileInput

apps/cursor/src/components/upload-logo.tsx:84–89  ·  view source on GitHub ↗
(e: ChangeEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

82 };
83
84 const handleFileInput = (e: ChangeEvent<HTMLInputElement>) => {
85 const file = e.target.files?.[0];
86 if (file) {
87 handleFile(file);
88 }
89 };
90
91 const handleClick = () => {
92 fileInputRef.current?.click();

Callers

nothing calls this directly

Calls 1

handleFileFunction · 0.85

Tested by

no test coverage detected