Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
ADIM
Commits
71f75d30
Commit
71f75d30
authored
Apr 20, 2015
by
Julien Furrer
Browse files
Fixed image type in input type file
parent
090732bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
adim_app/templates/adim_app/annotation_new.html
View file @
71f75d30
...
...
@@ -60,7 +60,7 @@ window.ADIM_CONFIG = {
<span
class=
"glyphicon glyphicon-plus"
></span>
<span>
Nouvelle image
</span>
<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>
</p>
...
...
adim_app/templates/adim_app/base_annotation.html
View file @
71f75d30
...
...
@@ -16,7 +16,7 @@
<span
class=
"glyphicon glyphicon-plus"
></span>
<span>
Nouvelle image
</span>
<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>
</span>
</li>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment