From 0875ce0836c5e70e9a64d27114e0dbca18162d33 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 6 Nov 2019 11:37:49 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20modalit=C3=A0=20pack=20x=20download...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MP-IO/Controllers/IOBController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MP-IO/Controllers/IOBController.cs b/MP-IO/Controllers/IOBController.cs index 4cfc94b0..4df01888 100644 --- a/MP-IO/Controllers/IOBController.cs +++ b/MP-IO/Controllers/IOBController.cs @@ -212,7 +212,7 @@ namespace MP_IO.Controllers public string uploadFile(string id) { string answ = ""; - // questa calsse è derivata da Controller.Response... x cui recupero lo stream in altro modo... + // questa classe è derivata da Controller.Response... x cui recupero lo stream in altro modo... string content = ""; System.Web.HttpContext.Current.Request.InputStream.Position = 0; using (var reader = new StreamReader(Request.InputStream, System.Text.Encoding.UTF8, true, 4096, true)) @@ -270,7 +270,7 @@ namespace MP_IO.Controllers currFile = new smallFile() { fileName = item.Nome, - content = fileContent.Replace("\n", Environment.NewLine) + content = fileContent.Replace("\r\n", Environment.NewLine) }; objFiles.fileList.Add(currFile); }