skip to Main Content

ASP.NET MVC IFormFile Stream Disposal?

In my ASP.NET MVC action method to process uploaded files, I have [HttpPost] public async Task<ActionResult> UploadFiles(IEnumerable<IFormFile> files) ... foreach (var file in files) { await using var stream = file.OpenReadStream(); ... Normal processing should mean that every file's stream…

VIEW QUESTION
Back To Top
Search