fix cartella di destinazione

This commit is contained in:
zaccaria.majid
2023-08-01 15:45:43 +02:00
parent 7eeb21df0c
commit 3f1c488685
+2 -4
View File
@@ -503,13 +503,11 @@ namespace SMGen.Pages
var trustedFileNameForFileStorage = Path.GetRandomFileName();
//path del file da scrivere
pathFile = Path.Combine(env.ContentRootPath,
env.EnvironmentName, "unsafe_uploads",
pathFile = Path.Combine("Temp", "unsafe_uploads",
trustedFileNameForFileStorage);
//path cartella root (development)
pathDir = Path.Combine(env.ContentRootPath,
env.EnvironmentName, "unsafe_uploads");
pathDir = Path.Combine("Temp", "unsafe_uploads");
//se la cartella non esiste, creo
if (!Directory.Exists(pathDir))