performance optimizations in site router and remove dependency between page and module in route specification
This commit is contained in:
@ -30,13 +30,14 @@
|
||||
{
|
||||
ShowProgressIndicator();
|
||||
|
||||
if (await FileService.UploadFilesAsync(PageState.Site.SiteRootPath, files, ""))
|
||||
string result = await FileService.UploadFilesAsync(PageState.Site.SiteRootPath, files, "");
|
||||
if (result == "")
|
||||
{
|
||||
AddModuleMessage("Files Uploaded Successfully", MessageType.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
AddModuleMessage("Upload Failed", MessageType.Error);
|
||||
AddModuleMessage("Upload Failed For " + result.Replace(",",", ") + ". This Could Be Due To A Network Error Or Because A File Type Is Restricted.", MessageType.Error);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
@ -9,7 +9,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<ActionLink Action="Add" Text="Add File" Style="float: right; margin: 10px;" />
|
||||
<ActionLink Action="Add" Text="Add Files" Style="float: right; margin: 10px;" />
|
||||
|
||||
<Pager Items="@Files">
|
||||
<Header>
|
||||
|
Reference in New Issue
Block a user