From a24caa951e84bfe599b7e81bb28e27f685289ec5 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 19 Oct 2018 18:21:56 +0200 Subject: [PATCH] Update procedura caricamento (caricato tutto) --- MP-LAND/Controllers/HomeController.cs | 4 +- MP-LAND/FileUpload/Web.config | 286 ++++++++++++++++---------- 2 files changed, 184 insertions(+), 106 deletions(-) diff --git a/MP-LAND/Controllers/HomeController.cs b/MP-LAND/Controllers/HomeController.cs index 2c247dc1..a1f1e079 100644 --- a/MP-LAND/Controllers/HomeController.cs +++ b/MP-LAND/Controllers/HomeController.cs @@ -175,7 +175,7 @@ namespace MP.Controllers var settings = rootWebConfig.AppSettings.Settings; foreach (var item in settings.AllKeys) { - memLayer.ML.taConfigTmp.insertQuery(sorgente, item, settings[item].Value, string.Format("{0}-{1}", sorgente, item)); + memLayer.ML.taConfigTmp.insertQuery(sorgente, item, settings[item].Value, string.Format("{0}|{1}", sorgente, item)); } // salvo in viewbag gli elenchi 0/1/2 (tutte, nuove, modificate) @@ -209,7 +209,7 @@ namespace MP.Controllers { try { - string path = Path.Combine(Server.MapPath("~/FileUpload"), Path.GetFileName(file.FileName)); + string path = Path.Combine(Server.MapPath("~/FileUpload"), Path.GetFileName(file.FileName).ToLower()); file.SaveAs(path); ViewBag.Message = "File Caricato!"; } diff --git a/MP-LAND/FileUpload/Web.config b/MP-LAND/FileUpload/Web.config index fb7c8554..09145796 100644 --- a/MP-LAND/FileUpload/Web.config +++ b/MP-LAND/FileUpload/Web.config @@ -1,112 +1,158 @@  - -
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - + + + + + - - - - + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - + + + - - - - - - - - - - - - - + @@ -114,27 +160,59 @@ - - + + - - - - - - + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file