Folder and file management service
This commit is contained in:
@ -109,6 +109,17 @@ namespace Oqtane.Modules
|
||||
return Utilities.EditUrl(PageState.Alias.Path, path, moduleid, action, parameters);
|
||||
}
|
||||
|
||||
public string ContentUrl(int fileid)
|
||||
{
|
||||
string apiurl = PageState.Uri.Scheme + "://" + PageState.Alias.Name + "/";
|
||||
if (PageState.Alias.Path == "")
|
||||
{
|
||||
apiurl += "~/";
|
||||
}
|
||||
apiurl += "api/File/Download/" + fileid.ToString();
|
||||
return apiurl;
|
||||
}
|
||||
|
||||
// user feedback methods
|
||||
public void AddModuleMessage(string message, MessageType type)
|
||||
{
|
||||
|
Reference in New Issue
Block a user