Fix modalità pack x download...
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user