From bdb01d1603a47923af2642ed88c88bfe53f81e27 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 1 Sep 2019 21:44:28 +0200 Subject: [PATCH] Some updates --- github | 2 +- modules/renderer/connection/FileTransfer.ts | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/github b/github index 06391c6..2dd1f60 160000 --- a/github +++ b/github @@ -1 +1 @@ -Subproject commit 06391c6cdd772c2f83c1387960f7224f7cd9f514 +Subproject commit 2dd1f60e8d034a68bbca9afe294070c8a83caa9e diff --git a/modules/renderer/connection/FileTransfer.ts b/modules/renderer/connection/FileTransfer.ts index 05d9f12..d80911b 100644 --- a/modules/renderer/connection/FileTransfer.ts +++ b/modules/renderer/connection/FileTransfer.ts @@ -88,7 +88,7 @@ namespace _transfer { } } - class NativeFileUpload implements RequestFileUpload { + class NativeFileUpload implements transfer.UploadTransfer { readonly transfer_key: transfer.UploadKey; private _handle: native.ft.NativeFileTransfer; @@ -101,7 +101,6 @@ namespace _transfer { this.transfer_key = key; } - async put_data(data: BlobPart | File) : Promise { if(this._result) { await this._result; @@ -167,8 +166,8 @@ namespace _transfer { })); } - try_put(data: FormData, url: string): Promise { - throw "what the hell?"; + get_key(): transfer.UploadKey { + return this.transfer_key; } } @@ -178,7 +177,7 @@ namespace _transfer { } - export function spawn_upload_transfer(key: transfer.UploadKey) : transfer.NativeFileUpload { + export function spawn_upload_transfer(key: transfer.UploadKey) : transfer.UploadTransfer { return new NativeFileUpload(key); } }