diff options
author | JakobDev <jakobdev@gmx.de> | 2023-04-21 23:58:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-21 17:58:59 -0400 |
commit | 02119ec95e559b1b6d4b48c3b4c8e5ce03e7a299 (patch) | |
tree | dca990db01c9ebd097c2cf25ae5f8c452ea3db95 /templates/org | |
parent | 20b6ae0e5399cfc22c6a0989d8e520194e920bdd (diff) | |
download | gitea-02119ec95e559b1b6d4b48c3b4c8e5ce03e7a299.tar.gz gitea-02119ec95e559b1b6d4b48c3b4c8e5ce03e7a299.zip |
Limit avatar upload to valid image files (#24258)
This causes the browser to allow only valid images in the file picker by
default.
---------
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates/org')
-rw-r--r-- | templates/org/settings/options.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index 1caa4210e6..56ad5fa896 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -91,7 +91,7 @@ {{.CsrfTokenHtml}} <div class="inline field"> <label for="avatar">{{.locale.Tr "settings.choose_new_avatar"}}</label> - <input name="avatar" type="file" > + <input name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp"> </div> <div class="field"> |