Image loss quality after upload via HttpPostedFile.SaveAs(imgPath)
问题 I'm working in a project that doesn't use much of the .net framework and instead work with Request.Form posts. The code that was being used to save the images (this work, but loss quality) is this one: files[0].SaveAs(HttpContext.Current.Server.MapPath("../uploads/") + filename); So I tried to change to this, but now it doesn't even save the image. (the uploadStream.Read(buffer, 0, buffer.Length) comes with the value of 0. string imagePath = HttpContext.Current.Server.MapPath("../uploads/") +