Created
November 16, 2018 08:34
-
-
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#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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