You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/docs/content/doc/advanced
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>
4 years ago
..
adding-legal-pages.en-us.md Add Privacy Policy and Terms of Service Page (#9513) 5 years ago
api-usage.en-us.md DOCS: add mention of swagger api reference (#8452) 5 years ago
api-usage.zh-cn.md Adapt documentation to renamed ENABLE_SWAGGER option (#5811) 6 years ago
ci-cd.en-us.md Add notice for awesome-gitea (#10612) 5 years ago
cmd-embedded.en-us.md Changed image of openid-connect logo for better look on arc-green theme (#11312) 5 years ago
config-cheat-sheet.en-us.md Attachments: Add extension support, allow all types for releases (#12465) 4 years ago
config-cheat-sheet.zh-cn.md Add default storage configurations (#12813) 4 years ago
customizing-gitea.en-us.md Add mermaid JS renderer (#12334) 5 years ago
customizing-gitea.zh-cn.md Rename custom/conf/app.ini.sample to custom/conf/app.example.ini for better syntax light on editor (#11926) 5 years ago
external-renderers.en-us.md Fix external renderers example (#12841) 4 years ago
hacking-on-gitea.en-us.md Add 'make watch' (#12636) 4 years ago
hacking-on-gitea.zh-cn.md ZH-CN translation of Advanced part (#5090) 6 years ago
logging-documentation.en-us.md [Docs] Logging Configuration - Use `logrotate` Instead (#9930) 5 years ago
mail-templates-us.md Add review comments to mail notifications (#8996) 5 years ago
make.en-us.md General documentation cleanup (#3317) 7 years ago
make.fr-fr.md General documentation cleanup (#3317) 7 years ago
make.zh-cn.md ZH-CN translation of Advanced part (#5090) 6 years ago
migrations.en-us.md update (#10079) 5 years ago
oauth2-provider.md Add oauth2 documentation (#6604) 6 years ago
repo-indexer.en-us.md Add detected file language to code search (#10256) 5 years ago
search-engines-indexation.en-us.md More extensive robots.txt docs (#9566) 5 years ago
signing.en-us.md Re-order GPG signing docs and fix code blocks (#10349) 5 years ago
specific-variables.en-us.md Copyedit docs (#6275) 6 years ago
specific-variables.zh-cn.md ZH-CN translation of Advanced part (#5090) 6 years ago
third-party-tools.en-us.md Add notice for awesome-gitea (#10612) 5 years ago
third-party-tools.zh-cn.md Create third-party-tools.zh-cn.md (#6303) 5 years ago