diff --git a/LANCommander/Program.cs b/LANCommander/Program.cs index 832ca87..7fe2541 100644 --- a/LANCommander/Program.cs +++ b/LANCommander/Program.cs @@ -109,6 +109,11 @@ if (settings.Beacon) builder.WebHost.UseStaticWebAssets(); +builder.WebHost.UseKestrel(options => +{ + options.Limits.MaxRequestBodySize = 1024 * 1024 * 150; +}); + var app = builder.Build(); // Configure the HTTP request pipeline. diff --git a/LANCommander/wwwroot/js/Upload.js b/LANCommander/wwwroot/js/Upload.js index 8bf6f11..293dc8e 100644 --- a/LANCommander/wwwroot/js/Upload.js +++ b/LANCommander/wwwroot/js/Upload.js @@ -18,7 +18,7 @@ class Uploader { constructor() { this.InitRoute = "/Upload/Init"; this.ChunkRoute = "/Upload/Chunk"; - this.MaxChunkSize = 1024 * 1024 * 25; + this.MaxChunkSize = 1024 * 1024 * 50; } Init(fileInputId, uploadButtonId, objectKeyInputId) { this.FileInput = document.getElementById(fileInputId); diff --git a/LANCommander/wwwroot/js/Upload.ts b/LANCommander/wwwroot/js/Upload.ts index ad3eba7..7ac1756 100644 --- a/LANCommander/wwwroot/js/Upload.ts +++ b/LANCommander/wwwroot/js/Upload.ts @@ -20,7 +20,7 @@ class Uploader { InitRoute: string = "/Upload/Init"; ChunkRoute: string = "/Upload/Chunk"; - MaxChunkSize: number = 1024 * 1024 * 25; + MaxChunkSize: number = 1024 * 1024 * 50; TotalChunks: number; CurrentChunk: number; Chunks: Chunk[];