Uploading videos DataType Asp.Net MVC

2

I want to put a Video Upload field on my Asp.Net MVC system and I did not find anything about videos in the DataType.

I found Varied DataType such as

[DataType(DataType.ImageUrl)]

[DataType(DataType.Upload)]

[DataType(DataType.Url)]

Among others, which DataType should I use to upload videos.

    
asked by anonymous 08.02.2018 / 21:58

1 answer

1

In System.ComponentModel.DataAnnotations.DataType , there is no specific type in the enumerator for "Video".

If Upload does not meet your needs, you will need to create your own customization and this will be a lot of work if you want to contemplate: Appearance, views, validators, scaffolding and helpers.

But if you want to venture into the task of implementing your Custom View the available documentation.

Note: Currently DataType available are:

  

CreditCard
  Represents a credit card number.

     

Currency
  Represents a currency value.

     

Custom
  Represents a custom data type.

     

Date
  Represents a date value.

     

DateTime
  It represents a moment in time, expressed as a date and time of day.

     

Duration
  Represents a continuous time during which an object exists.

     

EmailAddress
  It represents an email address.

     

Html
  It represents an HTML file.

     

ImageUrl
  Represents a URL for an image.

     

MultilineText   It represents multiline text.

     

Password
  Represents a password value.

     

PhoneNumber
  Represents a phone number value.

     

PostalCode
  It represents a zip code.

     

Text
  Represents the text that is displayed.

     

Time
  Represents a time value.

     

Upload
  Represents the file upload data type.

     

Url
  Represents a URL value.

Font

    
08.02.2018 / 23:33