update metodi x ricerca file...

This commit is contained in:
Samuele E. Locatelli
2018-03-15 16:30:29 +01:00
parent d506872127
commit bddb0e0769
6 changed files with 47 additions and 13 deletions
@@ -1,6 +1,7 @@
using MapoDb;
using SteamWare;
using System;
using System.Web;
using System.Web.UI;
namespace MoonProTablet.WebUserControls
@@ -179,8 +180,13 @@ namespace MoonProTablet.WebUserControls
try
{
string filePath = docFilePath(Disegno);
fileMover.obj.setDirectory("");
answ = fileMover.obj.fileExist(filePath);
answ = fileMover.obj.fileExist(HttpRuntime.AppDomainAppPath, filePath);
// tolgo eventuale "~/" se non trova
if (!answ)
{
answ = fileMover.obj.fileExist(HttpRuntime.AppDomainAppPath, filePath.Replace("~/", ""));
}
#if false
// se non trova provo a sostituire "~/" con "./"
if (!answ)
{
@@ -202,7 +208,8 @@ namespace MoonProTablet.WebUserControls
{
fileMover.obj.setDirectory(Server.MapPath(""));
answ = fileMover.obj.fileExist(filePath.Replace("~/", ""));
}
}
#endif
}
catch (Exception exc)
{