From b0a9be98f9a7ec98159426f96e831657be084c7f Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Tue, 26 Jan 2016 22:42:24 -0500 Subject: [PATCH] Fixes bug with websocket uploads; closes #48 --- resources/views/admin/nodes/view.blade.php | 2 +- resources/views/server/files/add.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/admin/nodes/view.blade.php b/resources/views/admin/nodes/view.blade.php index a005a7a1e..ac553a979 100644 --- a/resources/views/admin/nodes/view.blade.php +++ b/resources/views/admin/nodes/view.blade.php @@ -291,7 +291,7 @@ "installed": "{{ route('remote.install') }}" }, "uploads": { - "maximumSize": 1000000 + "maximumSize": 100000000 }, "keys": [ "{{ $node->daemonSecret }}" diff --git a/resources/views/server/files/add.blade.php b/resources/views/server/files/add.blade.php index 7c5dc29ce..f4e8126e8 100644 --- a/resources/views/server/files/add.blade.php +++ b/resources/views/server/files/add.blade.php @@ -75,7 +75,7 @@ $(window).load(function () { var newFileContents; @can('upload-files', $server) - var client = new BinaryClient('{{ $node->scheme === 'https' ? 'wss' : 'ws' }}://{{ $node->fqdn }}:{{ $node->daemonListen }}/upload/', { + var client = new BinaryClient('{{ $node->scheme === 'https' ? 'wss' : 'ws' }}://{{ $node->fqdn }}:{{ $node->daemonListen }}/upload/{{ $server->uuid }}', { chunkSize: 40960 }); // Wait for connection to BinaryJS server