Upload videos Datatype Asp.Net MVC

Asked

Viewed 108 times

2

I want to put a Video Upload field on my Asp.Net MVC system and I did not find anything related to videos on Datatype.

I found various datatype such as

[DataType(DataType.ImageUrl)]

[DataType(DataType.Upload)]

[DataType(DataType.Url)]

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

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 take a lot of work if you want to contemplate: The appearance, view modes, validators, scaffolding and helpers.

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

Obs: Currently the 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
Represents a moment in time, expressed as a date and time of the day.

Duration
Represents a continuous time during which an object exists.

Emailaddress
Represents an email address.

Html
Represents an HTML file.

Imageurl
Represents a URL for an image.

Multilinetext Represents text of several lines.

Password
Represents a password value.

Phonenumber
Represents a phone number value.

Postalcode
Represents a postal code.

Text
Represents the text that is displayed.

Team
Represents a time value.

Upload
Represents file upload data type.

Url
Represents a URL value.

Source

Browser other questions tagged

You are not signed in. Login or sign up in order to post.