I have an ASP.Net web application in which i have to upload a file:
@using (Html.BeginForm("Uploading_validation", "Super", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
<input type="file" name="dossier" accept="*.iso, *.rar, *.zip"/>
<br />
@Html.Label("Date d'expiration")
<input type="text" id="datepicker" name="duree" />
<br />
<input type="submit" value="OK" />
}
I'd like accept just the extensions accept="*.iso, *.rar, *.zip"
, but it didn't work.
Why does this filter not work? How can i modify the code?