(e)
| 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); |
nothing calls this directly
no test coverage detected