Skip to content

Commit 9305ba4

Browse files
committed
Merge pull request #15 from dinfcll/dv_AjoutDesRestrictionsChampsPhotos
le champs accepte seulement les.jpg .png et .jpeg
2 parents a3e1ba4 + 14c542b commit 9305ba4

16 files changed

+3
-3
lines changed

PhotoFun/Views/Home/Importer.cshtml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
@{
22
ViewBag.Title = "Importer";
33
}
4-
@using (Html.BeginForm("Upload", "Importer", FormMethod.Post, new { enctype = "multipart/form-data" }))
4+
@using (Html.BeginForm("Upload", "Importer", FormMethod.Post, new { enctype = "multipart/form-data"}))
55
{
66
<div class="page-header">
77
<h1>Importer des photos</h1>
88
</div>
9-
<input class="btnchoisirfich" type="file" name="file" />
9+
<input class="btnchoisirfich" type="file" name="file" accept=".jpg,.png,.jpeg"/>
1010
<input type="submit" name="SubImporter" value="Importer"/>
1111

1212
<h3 class="sub-header">Cat&eacute;gorie</h3>

PhotoFun/Views/Importer/TransfertEchoue.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<br /><br />
99
<span>-Vous n'avez pas sélectionné de fichier</span>
1010
<br />
11-
<span>-Le fichier choisi n'est pas supporté (.jpg ou .png uniquement)</span>
11+
<span>-Le fichier choisi n'est pas supporté (.jpg ou .png ou .jpeg uniquement)</span>
1212
<br/>
1313
<span>Cliquez ici pour retourner à la page @Html.ActionLink("importer", "Importer", "Home")</span>
1414
<br /><br />

PhotoFun/bin/PhotoFun.dll

512 Bytes
Binary file not shown.

PhotoFun/bin/PhotoFun.pdb

-10 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

PhotoFun/obj/Debug/PhotoFun.dll

512 Bytes
Binary file not shown.

PhotoFun/obj/Debug/PhotoFun.pdb

-10 KB
Binary file not shown.

TestPhotoFun/bin/Debug/PhotoFun.dll

512 Bytes
Binary file not shown.

TestPhotoFun/bin/Debug/PhotoFun.pdb

-10 KB
Binary file not shown.
0 Bytes
Binary file not shown.
-2 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
-2 KB
Binary file not shown.

0 commit comments

Comments
 (0)