Gitlab CSE Unil

Commit 71f75d30 authored by Julien Furrer's avatar Julien Furrer
Browse files

Fixed image type in input type file

parent 090732bf
...@@ -60,7 +60,7 @@ window.ADIM_CONFIG = { ...@@ -60,7 +60,7 @@ window.ADIM_CONFIG = {
<span class="glyphicon glyphicon-plus"></span>&nbsp; <span class="glyphicon glyphicon-plus"></span>&nbsp;
<span>Nouvelle image</span> <span>Nouvelle image</span>
<input id="fileupload" type="file" name="image_file" data-url="{% url "adim.app:upload_file" %}" <input id="fileupload" type="file" name="image_file" data-url="{% url "adim.app:upload_file" %}"
accept="image/png,image/jpg"> accept="image/png,image/jpg,image/jpeg">
</span> </span>
</p> </p>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<span class="glyphicon glyphicon-plus"></span>&nbsp; <span class="glyphicon glyphicon-plus"></span>&nbsp;
<span>Nouvelle image</span> <span>Nouvelle image</span>
<form action="{% url "adim.app:upload_file" %}" method="post" enctype="multipart/form-data">{% csrf_token %} <form action="{% url "adim.app:upload_file" %}" method="post" enctype="multipart/form-data">{% csrf_token %}
<input id="fileupload-alt" type="file" name="image_file" data-url="{% url "adim.app:upload_file" %}" accept="image/png,image/jpg"> <input id="fileupload-alt" type="file" name="image_file" data-url="{% url "adim.app:upload_file" %}" accept="image/png,image/jpg,image/jpeg">
</form> </form>
</span> </span>
</li> </li>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment