Здравствуйте, я делаю проект в котором нужно чтобы сам пользователь добавлял видео на страницу.
На это странице пользователь создает компанию:
@page
@model MyWebSite.Pages.Company.CreateModel
@{
ViewData["Title"] = "Create";
}
@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer Localizer
<link rel="stylesheet" href="/css/DragAndDrop.css">
<div class="container-fluid">
<div class="container">
<div class="container">
<div class="row">
<div class="col">
<h1>@Localizer["Create"]</h1>
<h4>@Localizer["Company"]</h4>
<hr />
<form method="post" class="row g-3">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="col-md-6">
<div class="form-group">
<h5 asp-for="Company.Title" class="control-label">@Localizer["Title"]</h5>
<input asp-for="Company.Title" class="form-control" />
<span asp-validation-for="Company.Title" class="text-danger"></span>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<h5 asp-for="Company.EnrollmentDate" class="control-label">@Localizer["Enrollment Date"]</h5>
<input asp-for="Company.EnrollmentDate" class="form-control" />
<span asp-validation-for="Company.EnrollmentDate" class="text-danger"></span>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<h5 asp-for="Company.Thematics" class="control-label">@Localizer["Thematics"]</h5>
<select asp-for="Company.Thematics" class="form-control" aria-label="Default select example">
<option selected>@Localizer["Choose the topic of your company"]</option>
<option>@Localizer["Education"]</option>
<option>@Localizer["Animals"]</option>
<option>@Localizer["Human rights"]</option>
<option>@Localizer["Nature"]</option>
<option>@Localizer["Culture"]</option>
<option>@Localizer["Game"]</option>
<option>@Localizer["Other"]</option>
</select>
<span asp-validation-for="Company.Thematics" class="text-danger"></span>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<h5 asp-for="Company.Bonus" class="control-label">@Localizer["Bonus"]</h5>
<input asp-for="Company.Bonus" class="form-control" />
<span asp-validation-for="Company.Bonus" class="text-danger"></span>
</div>
</div>
<div class="col-12">
<div class="form-group">
<h5 asp-for="Company.Description" class="control-label">@Localizer["Description"]</h5>
<textarea asp-for="Company.Description" class="form-control"></textarea>
<span asp-validation-for="Company.Description" class="text-danger"></span>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<h5 asp-for="Company.Images" class="control-label">@Localizer["Images"]</h5>
<div class="mb-3">
<input class="form-control" type="file" id="formFileMultiple" multiple>
</div>
</div>
</div>
<div class="col-md-6"> //вот здесь сам пользователь должен добавлять видео
<div class="form-group">
<h5 asp-for="Company.Video" class="control-label">@Localizer["Video"]</h5>
<input asp-for="Company.Video" class="form-control" />
<span asp-validation-for="Company.Video" class="text-danger"></span>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<h5 asp-for="Company.Topic" class="control-label">@Localizer["Topic"]</h5>
<input asp-for="Company.Topic" class="form-control" />
<span asp-validation-for="Company.Topic" class="text-danger"></span>
</div>
</div>
<div class="col-12">
<div class="form-group">
<h5 asp-for="Company.News" class="control-label">@Localizer["News"]</h5>
<textarea asp-for="Company.News" class="form-control"></textarea>
<span asp-validation-for="Company.News" class="text-danger"></span>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<h5 asp-for="Company.Price" class="control-label">@Localizer["Price"]</h5>
<input asp-for="Company.Price" class="form-control" />
<span asp-validation-for="Company.Price" class="text-danger"></span>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<h5 asp-for="Company.Tags" class="control-label">@Localizer["Tags"]</h5>
<input asp-for="Company.Tags" class="form-control" />
<span asp-validation-for="Company.Tags" class="text-danger"></span>
</div>
</div>
<div class="col-12">
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</div>
</form>
<div>
<a asp-page="Index">@Localizer["Back to List"]</a>
</div>
</div>
</div>
</div>
</div>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
Подскажите как это сделать?
Заранее спасибо.