ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
35.28k
stars
9.96k
forks
source link
FileUpload: Did not receive any data in the allotted time. #38842
Closed
Liero closed 1 month ago
Describe the bug
Not sure if this is a bug but I haven't found any documentation either.
IBrowserFile.ReportFile!.OpenReadStream(maxFileSize).CopyToAsync(fileStream);
sometimes throwsTo Reproduce
I haven't found a reliable way to reproduce the issue, since it happens only sometimes and have no idea what is causing it.
Here is the code:
Exceptions (if any)
System.TimeoutException: Did not receive any data in the allotted time.
``` [ { "method":"System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw", "level":0, "line":0, "assembly":"System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" }, { "method":"System.IO.Pipelines.Pipe.GetReadResult", "level":1, "line":0, "assembly":"System.IO.Pipelines, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" }, { "method":"System.IO.Pipelines.Pipe.GetReadAsyncResult", "level":2, "line":0, "assembly":"System.IO.Pipelines, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" }, { "method":"System.IO.Pipelines.PipeReaderStream+