File tree Expand file tree Collapse file tree
TelegramDownloader/Pages/Partials/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88@inject IFileService fs ;
99@inject ITelegramService ts ;
1010@inject ILogger <FileManager > Logger ;
11+ @inject NavigationManager NavManager
12+
1113
1214
1315
1416<SfFileManager @ref =" FileManager" ID =" localfm" TValue =" FileManagerDirectoryContent" >
15- <FileManagerAjaxSettings Url =@($ " /api/file/FileOperations " )
16- UploadUrl =" /api/file/Upload "
17- DownloadUrl =" /api/file/Download "
18- GetImageUrl =" /api/file/GetImage " >
17+ <FileManagerAjaxSettings Url =" @FileOperationsUrl "
18+ UploadUrl =" @UploadUrl "
19+ DownloadUrl =" @DownloadUrl "
20+ GetImageUrl =" @GetImageUrl " >
1921 </FileManagerAjaxSettings >
2022 <FileManagerSearchSettings FilterDelay =" 1200" ></FileManagerSearchSettings >
2123 <FileManagerUploadSettings MaxFileSize =" @(long.MaxValue)" AutoUpload =" true" ></FileManagerUploadSettings >
5052 private Modals .FileUploadModal ModalUpSer { get ; set ; }
5153 private bool isMyChannel = false ;
5254
55+ private string BaseUrl => NavManager .BaseUri .TrimEnd ('/' );
56+
57+ private string FileOperationsUrl => $" {BaseUrl }/api/file/FileOperations" ;
58+ private string UploadUrl => $" {BaseUrl }/api/file/Upload" ;
59+ private string DownloadUrl => $" {BaseUrl }/api/file/Download" ;
60+ private string GetImageUrl => $" {BaseUrl }/api/file/GetImage" ;
61+
5362
5463 public List <ToolBarItemModel > Items = new List <ToolBarItemModel >(){
5564 new ToolBarItemModel () { Name = " NewFolder" },
You can’t perform that action at this time.
0 commit comments