MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / onDrop

Function onDrop

apps/web/ui/Thread/index.tsx:199–206  ·  view source on GitHub ↗
(event: React.DragEvent)

Source from the content-addressed store, hash-verified

197 }
198
199 const onDrop = (event: React.DragEvent) => {
200 event.preventDefault();
201 event.stopPropagation();
202 const files = Array.from(event.dataTransfer.files || []);
203 if (files.length > 0) {
204 uploadFiles(files);
205 }
206 };
207
208 const manage = permissions.manage || isThreadCreator(currentUser, thread);
209 const views = viewCount + 1;

Callers 2

handleDropFunction · 0.50
handleDropFunction · 0.50

Calls 1

uploadFilesFunction · 0.70

Tested by

no test coverage detected