Increase chunk size to 50MB
parent
f8b88404f4
commit
f2b9338b7e
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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[];
|
||||
|
|
Loading…
Reference in New Issue