From 3f1c488685d99a4abada896c9c6a2a20fc0e53dc Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Tue, 1 Aug 2023 15:45:43 +0200 Subject: [PATCH] fix cartella di destinazione --- SMGen/Pages/SMIn2Event.razor.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SMGen/Pages/SMIn2Event.razor.cs b/SMGen/Pages/SMIn2Event.razor.cs index ef2e608..b2c9d4a 100644 --- a/SMGen/Pages/SMIn2Event.razor.cs +++ b/SMGen/Pages/SMIn2Event.razor.cs @@ -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))