Increase chunk size to 50MB
This commit is contained in:
parent
f8b88404f4
commit
f2b9338b7e
3 changed files with 7 additions and 2 deletions
|
@ -109,6 +109,11 @@ if (settings.Beacon)
|
||||||
|
|
||||||
builder.WebHost.UseStaticWebAssets();
|
builder.WebHost.UseStaticWebAssets();
|
||||||
|
|
||||||
|
builder.WebHost.UseKestrel(options =>
|
||||||
|
{
|
||||||
|
options.Limits.MaxRequestBodySize = 1024 * 1024 * 150;
|
||||||
|
});
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
// Configure the HTTP request pipeline.
|
// Configure the HTTP request pipeline.
|
||||||
|
|
|
@ -18,7 +18,7 @@ class Uploader {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.InitRoute = "/Upload/Init";
|
this.InitRoute = "/Upload/Init";
|
||||||
this.ChunkRoute = "/Upload/Chunk";
|
this.ChunkRoute = "/Upload/Chunk";
|
||||||
this.MaxChunkSize = 1024 * 1024 * 25;
|
this.MaxChunkSize = 1024 * 1024 * 50;
|
||||||
}
|
}
|
||||||
Init(fileInputId, uploadButtonId, objectKeyInputId) {
|
Init(fileInputId, uploadButtonId, objectKeyInputId) {
|
||||||
this.FileInput = document.getElementById(fileInputId);
|
this.FileInput = document.getElementById(fileInputId);
|
||||||
|
|
|
@ -20,7 +20,7 @@ class Uploader {
|
||||||
InitRoute: string = "/Upload/Init";
|
InitRoute: string = "/Upload/Init";
|
||||||
ChunkRoute: string = "/Upload/Chunk";
|
ChunkRoute: string = "/Upload/Chunk";
|
||||||
|
|
||||||
MaxChunkSize: number = 1024 * 1024 * 25;
|
MaxChunkSize: number = 1024 * 1024 * 50;
|
||||||
TotalChunks: number;
|
TotalChunks: number;
|
||||||
CurrentChunk: number;
|
CurrentChunk: number;
|
||||||
Chunks: Chunk[];
|
Chunks: Chunk[];
|
||||||
|
|
Loading…
Add table
Reference in a new issue