webdav portal upload added
This commit is contained in:
parent
51d432fd2e
commit
38bde37b18
105 changed files with 21145 additions and 105 deletions
|
@ -1,4 +1,5 @@
|
|||
using WebsitePanel.WebDav.Core.Client;
|
||||
using System;
|
||||
using WebsitePanel.WebDav.Core.Client;
|
||||
using WebsitePanel.WebDavPortal.Models.Common.DataTable;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.Models.FileSystem
|
||||
|
@ -8,9 +9,11 @@ namespace WebsitePanel.WebDavPortal.Models.FileSystem
|
|||
public string DisplayName { get; set; }
|
||||
public string Url { get; set; }
|
||||
public bool IsTargetBlank { get; set; }
|
||||
public bool IsFolder { get; set; }
|
||||
public long Size { get; set; }
|
||||
public string Type { get; set; }
|
||||
public string LastModified { get; set; }
|
||||
public DateTime LastModified { get; set; }
|
||||
public string LastModifiedFormated { get; set; }
|
||||
public string IconHref { get; set; }
|
||||
|
||||
public override dynamic this[int index]
|
||||
|
@ -23,6 +26,14 @@ namespace WebsitePanel.WebDavPortal.Models.FileSystem
|
|||
{
|
||||
return Size;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
return LastModified;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
return Type;
|
||||
}
|
||||
default:
|
||||
{
|
||||
return DisplayName;
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
using System;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.Models.FileSystem
|
||||
{
|
||||
public class UploadFileResult
|
||||
{
|
||||
private string _error;
|
||||
|
||||
public string error
|
||||
{
|
||||
get { return _error; }
|
||||
set
|
||||
{
|
||||
if (!String.IsNullOrEmpty(value))
|
||||
{
|
||||
_error = value;
|
||||
deleteUrl = String.Empty;
|
||||
thumbnailUrl = String.Empty;
|
||||
url = String.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string name { get; set; }
|
||||
|
||||
public int size { get; set; }
|
||||
public string type { get; set; }
|
||||
public string url { get; set; }
|
||||
public string deleteUrl { get; set; }
|
||||
public string thumbnailUrl { get; set; }
|
||||
public string deleteType { get; set; }
|
||||
|
||||
|
||||
public string FullPath { get; set; }
|
||||
public string SavedFileName { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue