diff --git a/LiMan.Api/appsettings.json b/LiMan.Api/appsettings.json
index 9eaca6a..e723b87 100644
--- a/LiMan.Api/appsettings.json
+++ b/LiMan.Api/appsettings.json
@@ -42,5 +42,6 @@
],
"Database": 14
},
- "FileShare": "\\\\stor01\\TEAM DRIVES\\40_FileUpload\\unsafe_uploads"
+ "FileShare": "\\\\stor01\\TEAM DRIVES\\40_FileUpload\\unsafe_uploads",
+ "ApiUrl": "https://liman.egalware.com/"
}
\ No newline at end of file
diff --git a/LiMan.UI/Components/Tickets.razor b/LiMan.UI/Components/Tickets.razor
index 61d0cfb..567f637 100644
--- a/LiMan.UI/Components/Tickets.razor
+++ b/LiMan.UI/Components/Tickets.razor
@@ -1,4 +1,10 @@
@using LiMan.UI.Components
+@using Microsoft.Extensions.Configuration
+@inject IConfiguration Configuration
+
+@using System.IO
+@inject IJSRuntime JS
+
}
diff --git a/LiMan.UI/Components/Tickets.razor.cs b/LiMan.UI/Components/Tickets.razor.cs
index 295be22..31fe242 100644
--- a/LiMan.UI/Components/Tickets.razor.cs
+++ b/LiMan.UI/Components/Tickets.razor.cs
@@ -122,6 +122,16 @@ namespace LiMan.UI.Components
isLoading = false;
}
+
+ //private async void DownloadFileFromURL(string fileName, string rawUrl)
+ //{
+ // rawUrl = rawUrl.Replace("\\", "/");
+ // var fileURL = $"unsafe_uploads/"+rawUrl;
+ // //var fileName = "log-0001.txt";
+ // //var fileName = FileAttached;
+ // await JS.InvokeVoidAsync("triggerFileDownload", fileName, fileURL);
+ //}
+
#endregion Private Methods
#region Protected Methods
diff --git a/LiMan.UI/LiMan.UI.csproj b/LiMan.UI/LiMan.UI.csproj
index 86114de..98affc9 100644
--- a/LiMan.UI/LiMan.UI.csproj
+++ b/LiMan.UI/LiMan.UI.csproj
@@ -2,7 +2,7 @@
net5.0
- 1.1.2202.0710
+ 1.1.2202.0910
LiMan.UI
LiMan.UI
diff --git a/LiMan.UI/Resources/ChangeLog.html b/LiMan.UI/Resources/ChangeLog.html
index 91b1178..5c7c3f4 100644
--- a/LiMan.UI/Resources/ChangeLog.html
+++ b/LiMan.UI/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
License Manager
-
Versione: 1.1.2202.0710
+
Versione: 1.1.2202.0910
Note di rilascio:
diff --git a/LiMan.UI/Resources/VersNum.txt b/LiMan.UI/Resources/VersNum.txt
index 098fc2f..f27f229 100644
--- a/LiMan.UI/Resources/VersNum.txt
+++ b/LiMan.UI/Resources/VersNum.txt
@@ -1 +1 @@
-1.1.2202.0710
+1.1.2202.0910
diff --git a/LiMan.UI/Resources/manifest.xml b/LiMan.UI/Resources/manifest.xml
index 4300ce2..bb0d05f 100644
--- a/LiMan.UI/Resources/manifest.xml
+++ b/LiMan.UI/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 1.1.2202.0710
+ 1.1.2202.0910
https://nexus.steamware.net/repository/SWS/LiMan/stable/LAST/LiMan.UI.zip
https://nexus.steamware.net/repository/SWS/LiMan/stable/LAST/ChangeLog.html
false
diff --git a/LiMan.UI/Startup.cs b/LiMan.UI/Startup.cs
index 57cfb22..3fe6b22 100644
--- a/LiMan.UI/Startup.cs
+++ b/LiMan.UI/Startup.cs
@@ -15,6 +15,8 @@ using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity.UI.Services;
+using Microsoft.Extensions.FileProviders;
+using Microsoft.AspNetCore.Http;
namespace LiMan.UI
{
@@ -72,6 +74,15 @@ namespace LiMan.UI
app.UseHttpsRedirection();
app.UseStaticFiles();
+
+ app.UseFileServer(new FileServerOptions
+ {
+ FileProvider = new PhysicalFileProvider(@"\\stor01\TEAM DRIVES\40_FileUpload\unsafe_uploads"),
+ RequestPath = new PathString("/unsafe_uploads"),
+ EnableDirectoryBrowsing = true
+ //EnableDirectoryBrowsing = false
+ });
+
app.UseRouting();
app.UseEndpoints(endpoints =>
diff --git a/LiMan.UI/appsettings.json b/LiMan.UI/appsettings.json
index 1da47b7..04e53ef 100644
--- a/LiMan.UI/appsettings.json
+++ b/LiMan.UI/appsettings.json
@@ -28,5 +28,6 @@
"MailDest": {
"Admin": "samuele@steamware.net",
"ProcOp": "ceo@steamware.net"
- }
+ },
+ "ApiUrl": "https://liman.egalware.com"
}
\ No newline at end of file