From c5fa09c4d427ed184b78c904d7d5a1a35671c918 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 27 Aug 2025 10:06:39 -0600 Subject: [PATCH] handle wh file uploads --- .../system/routes/gateways/gateways.component.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/web/projects/ui/src/app/routes/portal/routes/system/routes/gateways/gateways.component.ts b/web/projects/ui/src/app/routes/portal/routes/system/routes/gateways/gateways.component.ts index 01d69284e..784ec2cb2 100644 --- a/web/projects/ui/src/app/routes/portal/routes/system/routes/gateways/gateways.component.ts +++ b/web/projects/ui/src/app/routes/portal/routes/system/routes/gateways/gateways.component.ts @@ -131,17 +131,13 @@ export default class GatewaysComponent { handler: async (input: typeof spec._TYPE) => { const loader = this.loader.open('Saving').subscribe() - console.log('FILE', input.config.value.file) - - console.log( - 'FILE STRINGIFIED', - JSON.stringify(input.config.value.file), - ) - try { await this.api.addTunnel({ name: input.name, - config: '' as string, // @TODO alex/matt when types arrive + config: + input.config.selection === 'paste' + ? input.config.value.file + : await (input.config.value.file as any as File).text(), public: input.type === 'public', }) return true