fix(tailshare): use correct version of sendFile() after streaming switch

This commit is contained in:
2026-07-25 17:56:02 +00:00
parent 80ec3460f1
commit 5a94656194
@@ -7,7 +7,6 @@ import { use } from "react"
import { getIpnFileTargets } from "../../../../tsconnect-redux/dist/selectors"
import { UploadIcon } from "@phosphor-icons/react"
import { upload } from "../../utils/upload"
import { readBlob } from "../../utils/blob"
export default function TailnetDrawerContents_() {
const peers = useIpnSelector(getPeers)
@@ -38,8 +37,7 @@ export default function TailnetDrawerContents_() {
onClick={async () => {
const file = await upload()
if (!file) return
const data = await readBlob(file, "bytes")
ipn.sendFile(peer.stableNodeID, file.name, data)
ipn.sendFile(peer.stableNodeID, file.name, file.stream(), file.size)
}}
>
<UploadIcon />