fix uploading

This commit is contained in:
2021-07-08 17:18:12 +02:00
parent c2515281d1
commit a1696c38c7
3 changed files with 15 additions and 9 deletions

View File

@@ -68,10 +68,7 @@ namespace FarmmapsApi.Services
contentStream.ThrowIfNull(nameof(contentStream));
_streamLength = ContentStream.CanSeek ? ContentStream.Length : UnknownSize;
var twoMB = 2 * 0x100000;
ChunkSize = twoMB;
body.ChunkSize = ChunkSize;
ChunkSize = 2 * 0x100000;
Body = body;
Path = path;