Increase chunk size to 50MB

dhcp-server
Pat Hartl 2023-04-09 19:20:41 -05:00
parent f8b88404f4
commit f2b9338b7e
3 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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);

View File

@ -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[];