aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/transport.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/transport.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/transport.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/transport.js b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
index d2b24a3..0306a5c 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/transport.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
@@ -488,14 +488,13 @@ class MeshBayTransport {
this._send({ type: 'stream_req', v: '0.1', file_id: fileId });
}
- async uploadChunk(filename, chunkIndex, totalChunks, data, dir) {
+ async uploadChunk(filename, chunkIndex, totalChunks, data) {
+ // The node decides where this lands (uploads/) and under what name — it
+ // finds a free one rather than replacing anything. The ack says which.
const msg = await this._sendAndWait({
type: 'file_upload',
v: '0.1',
filename,
- // Where the member is looking. The node confines it under the shared root
- // and refuses to overwrite, so this is a destination, not a licence.
- dir: dir || '',
chunk_index: chunkIndex,
total_chunks: totalChunks,
data: data,