fix(tailshare): use correct version of sendFile() after streaming switch
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user