MCPcopy Create free account
hub / github.com/dailydotdev/apps / onFileChange

Function onFileChange

packages/shared/src/hooks/useControlledImageUpload.ts:75–78  ·  view source on GitHub ↗
(event: ChangeEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

73 }, [preview]);
74
75 const onFileChange = (event: ChangeEvent<HTMLInputElement>) => {
76 const file = event.target.files?.[0];
77 handleFile(file);
78 };
79
80 const onUploadClick = () => {
81 inputRef.current?.click();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected