diff options
author | glupovat | 2020-05-18 12:55:42 +0300 |
---|---|---|
committer | glupovat | 2020-05-18 12:55:42 +0300 |
commit | 32a3631480ebd3a620e444497615a4303be8995a (patch) | |
tree | 883d6b7b133d752c330a4263db1fc1c56a014cf9 /src | |
parent | 552ccd3942328bd086fd24406c8a30ebf92aef2e (diff) |
add image MIME type filter into post form
Diffstat (limited to 'src')
-rw-r--r-- | src/main/resources/templates/views/post.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/resources/templates/views/post.html b/src/main/resources/templates/views/post.html index 8749d9e2..b4893ec9 100644 --- a/src/main/resources/templates/views/post.html +++ b/src/main/resources/templates/views/post.html @@ -5,7 +5,7 @@ <form id="postmsg"> <p style="text-align: left"> <b>Фото:</b> <span id="attachmentfile"> - <input style="width: 100%;" type="file" name="attach"/> <i>({{ i18n("messages","postForm.imageFormats") }})</i></span> + <input style="width: 100%;" type="file" name="attach" accept="image/jpeg,image/png"/> <i>({{ i18n("messages","postForm.imageFormats") }})</i></span> </p> <p> <textarea name="body" class="newmessage" rows="7" cols="10" placeholder="*weather It's very cold today!">{{ body }}</textarea> @@ -19,4 +19,4 @@ {% endblock %} {% block "column" %} {% include "views/partial/usercolumn" %} -{% endblock %}
\ No newline at end of file +{% endblock %} |