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

Function onChange

packages/shared/src/hooks/useControlledImageUpload.ts:35–44  ·  view source on GitHub ↗
(base64, file)

Source from the content-addressed store, hash-verified

33 acceptedTypes: acceptedTypesList,
34 limitMb: fileSizeLimitMB,
35 onChange(base64, file) {
36 if (!base64 || !file) {
37 setValue(name, null);
38 setPreview(null);
39 return;
40 }
41 setValue(name, file);
42 setValue(currentImageName, null);
43 setPreview(base64);
44 },
45 });
46
47 const { validateFiles } = useFileValidation({

Callers 1

onFileChangeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected