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

Function onDrop

packages/shared/src/hooks/input/useMarkdownInput.ts:551–562  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

549 };
550
551 const onDrop: DragEventHandler<HTMLTextAreaElement> = async (e) => {
552 e.preventDefault();
553 const items = e.dataTransfer.files;
554
555 if (!items.length || !isUploadEnabled) {
556 return;
557 }
558
559 Array.from(items).forEach(verifyFile);
560
561 startUploading();
562 };
563
564 const onUploadCommand = (files: FileList) => {
565 Array.from(files).forEach(verifyFile);

Callers

nothing calls this directly

Calls 1

startUploadingFunction · 0.85

Tested by

no test coverage detected