verificato invio su share rete OK
This commit is contained in:
@@ -86,11 +86,6 @@ namespace LiMan.APi.Controllers
|
||||
{
|
||||
DateTime oggi = DateTime.Today;
|
||||
trustedFileNameForFileStorage = Path.GetRandomFileName();
|
||||
#if false
|
||||
relDir = Path.Combine(env.EnvironmentName, "unsafe_uploads", ticketDir);
|
||||
fileDir = Path.Combine(env.ContentRootPath, relDir);
|
||||
//string fileDir = Path.Combine(env.ContentRootPath, env.EnvironmentName, "unsafe_uploads", $"{oggi:yyyy}", $"{oggi:MM}", $"{oggi:dd}");
|
||||
#endif
|
||||
relDir = _configuration["FileShare"];
|
||||
fileDir = Path.Combine(relDir, ticketDir);
|
||||
if (!Directory.Exists(fileDir))
|
||||
@@ -166,9 +161,8 @@ namespace LiMan.APi.Controllers
|
||||
{
|
||||
DateTime oggi = DateTime.Today;
|
||||
trustedFileNameForFileStorage = Path.GetRandomFileName();
|
||||
relDir = Path.Combine(env.EnvironmentName, "unsafe_uploads", ticketDir);
|
||||
fileDir = Path.Combine(env.ContentRootPath, relDir);
|
||||
//string fileDir = Path.Combine(env.ContentRootPath, env.EnvironmentName, "unsafe_uploads", $"{oggi:yyyy}", $"{oggi:MM}", $"{oggi:dd}");
|
||||
relDir = _configuration["FileShare"];
|
||||
fileDir = Path.Combine(relDir, ticketDir);
|
||||
if (!Directory.Exists(fileDir))
|
||||
{
|
||||
Directory.CreateDirectory(fileDir);
|
||||
|
||||
@@ -35,20 +35,11 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="Development\unsafe_uploads\.placeholder.file">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="LiMan.APi.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="logs\.placeholder.txt">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Production\unsafe_uploads\.placeholder.file">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Staging\unsafe_uploads\.placeholder.file">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user