public ForumTopicPostAttachmentWrapper(Attachment attachment)
        {
            ContentType = attachment.ContentType.ToString();
            Updated = Created = (ApiDateTime)attachment.CreateDate;

            Name = attachment.Name;
            Size = attachment.Size;
            Path = attachment.OffsetPhysicalPath;//TODO: add through datastorage
        }
Esempio n. 2
0
 public string GetAttachmentWebPath(Attachment attachment)
 {
     return GetStore().GetUri(attachment.OffsetPhysicalPath).ToString();
 }