Skip to content

Instantly share code, notes, and snippets.

@simple17
Created November 16, 2018 08:34
Show Gist options
  • Save simple17/671002bda1091483db6356d927a05ffb to your computer and use it in GitHub Desktop.
Save simple17/671002bda1091483db6356d927a05ffb to your computer and use it in GitHub Desktop.
[Media type] To make new filetypes available for uploading you need to declare class for each type. #episerver #c#
using EPiServer.Core;
using EPiServer.DataAnnotations;
using EPiServer.Framework.DataAnnotations;
namespace SomeName.Project.Media
{
[ContentType]
[MediaDescriptor(ExtensionString = "flv,mp4,webm,ogv")]
public class VideoFile : VideoData
{
public virtual string AlternativeText { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment