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

My ASP.NET MVC authentication sign out shortly – Plesk

I wrote an ASP.NET MVC web site and use authentication. I set a cookie like this FormsAuthentication.SetAuthCookie(login.UserName, login.RememberMe); This cookie is created correctly, but user is signed out very soon. This is my web.config: <authentication mode="Forms"> <forms name="LightOilManager" loginUrl="/Customer/Home/Login" defaultUrl="/"…

VIEW QUESTION
Back To Top
Search