0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-19 00:11:24 +01:00
gitea/docs/content/doc
silverwind cda44750cb
Attachments: Add extension support, allow all types for releases (#12465)
* Attachments: Add extension support, allow all types for releases

- Add support for file extensions, matching the `accept` attribute of `<input type="file">`
- Add support for type wildcard mime types, e.g. `image/*`
- Create repository.release.ALLOWED_TYPES setting (default unrestricted)
- Change default for attachment.ALLOWED_TYPES to a list of extensions
- Split out POST /attachments into two endpoints for issue/pr and
  releases to prevent circumvention of allowed types check

Fixes: https://github.com/go-gitea/gitea/pull/10172
Fixes: https://github.com/go-gitea/gitea/issues/7266
Fixes: https://github.com/go-gitea/gitea/pull/12460
Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#Unique_file_type_specifiers

* rename function

* extract GET routes out of RepoMustNotBeArchived

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-10-05 01:49:33 -04:00
..
advanced Attachments: Add extension support, allow all types for releases (#12465) 2020-10-05 01:49:33 -04:00
features Update comparison for GitLab CE (#13019) 2020-10-02 18:08:17 -04:00
help Fix hugo shortcode typo in faq (#12987) 2020-09-30 16:59:30 -04:00
installation updated docs with caveat for authorized_keys (#13030) 2020-10-04 19:52:40 -04:00
upgrade Remove migration support from versions earlier than 1.6.0 (#10026) 2020-01-31 21:42:45 +08:00
usage Fix hugo shortcode typo in faq (#12987) 2020-09-30 16:59:30 -04:00
advanced.en-us.md
advanced.fr-fr.md General documentation cleanup (#3317) 2018-01-08 23:48:42 +01:00
advanced.zh-cn.md
features.en-us.md
features.zh-cn.md
features.zh-tw.md
help.en-us.md Implement documentation search (#8937) 2019-11-13 18:03:18 +00:00
help.fr-fr.md Implement documentation search (#8937) 2019-11-13 18:03:18 +00:00
help.zh-cn.md Implement documentation search (#8937) 2019-11-13 18:03:18 +00:00
help.zh-tw.md Implement documentation search (#8937) 2019-11-13 18:03:18 +00:00
installation.en-us.md
installation.fr-fr.md General documentation cleanup (#3317) 2018-01-08 23:48:42 +01:00
installation.zh-cn.md
installation.zh-tw.md
upgrade.en-us.md
upgrade.fr-fr.md General documentation cleanup (#3317) 2018-01-08 23:48:42 +01:00
upgrade.zh-cn.md
upgrade.zh-tw.md
usage.en-us.md
usage.zh-cn.md ZH-CN translation of Usage part (#5086) 2018-10-17 14:19:04 -04:00