Validate upload size against the node limit before uploading

Expose the node's upload_size on the client server resource and reject
files over it in the file manager before any bytes are sent.
This commit is contained in:
dualfroz committed 2026-10-14 18:16:57 +02:00
1 parent 56e5db2059
commit 2e78dfef1e
12 files changed
+144 -2

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ export function createTestServer(options: TestServerOptions = {}): Server {
name: options.name ?? 'Test server',
node: 'Test node',
is_node_under_maintenance: false,
upload_size: 100,
sftp_details: { ip: '127.0.0.1', port: 2022 },
description: null,
limits: { memory: 1024, swap: 0, disk: 1024, io: 500, cpu: 100, threads: null, oom_disabled: true },