fix cartella di destinazione
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user