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