This commit is contained in:
parent
917792c4a4
commit
94a58b988a
@ -1,3 +1,4 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.Extensions.FileProviders;
|
using Microsoft.Extensions.FileProviders;
|
||||||
@ -6,6 +7,7 @@ namespace OD.WebApplication.Models
|
|||||||
{
|
{
|
||||||
public class HomeViewModel
|
public class HomeViewModel
|
||||||
{
|
{
|
||||||
|
[Required]
|
||||||
public IFormFile FileAttach { get; set; }
|
public IFormFile FileAttach { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,16 +5,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<h4>Escoge el CSV a parsear</h4>
|
|
||||||
<br/>
|
|
||||||
@using (Html.BeginForm("UploadCSV", "Home", FormMethod.Post, new {id = "loginForm", enctype = "multipart/form-data"}))
|
@using (Html.BeginForm("UploadCSV", "Home", FormMethod.Post, new {id = "loginForm", enctype = "multipart/form-data"}))
|
||||||
{
|
{
|
||||||
@Html.AntiForgeryToken()
|
@Html.AntiForgeryToken()
|
||||||
<div class="form-group">
|
<label asp-for="@Model.FileAttach">Escoge el CSV a convertir</label><br/>
|
||||||
<label asp-for="@Model.FileAttach"></label>
|
|
||||||
<input asp-for="@Model.FileAttach" type="file">
|
<input asp-for="@Model.FileAttach" type="file">
|
||||||
<span asp-validation-for="@Model.FileAttach"></span>
|
<br/>
|
||||||
</div>
|
|
||||||
<input class="btn btn-outline-primary" type="submit"/>
|
<input class="btn btn-outline-primary" type="submit"/>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user