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

Function verifyFile

packages/shared/src/hooks/input/useMarkdownInput.ts:540–549  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

538 };
539
540 const verifyFile = (file: File) => {
541 const isValidType = allowedContentImage.includes(file.type);
542
543 if (file.size > allowedFileSize || !isValidType) {
544 displayToast(uploadNotAcceptedMessage);
545 return;
546 }
547
548 pushUpload(file);
549 };
550
551 const onDrop: DragEventHandler<HTMLTextAreaElement> = async (e) => {
552 e.preventDefault();

Callers

nothing calls this directly

Calls 2

displayToastFunction · 0.85
pushUploadFunction · 0.85

Tested by

no test coverage detected