You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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 |
.. |
activity.go
|
Add top author stats to activity page (#9615)
|
5 years ago |
attachment.go
|
Attachments: Add extension support, allow all types for releases (#12465)
|
4 years ago |
blame.go
|
Ensure BlameReaders close at end of request (#12102)
|
4 years ago |
branch.go
|
Move all push update operations to a queue (#10133)
|
4 years ago |
commit.go
|
Render the git graph on the server (#12333)
|
4 years ago |
compare.go
|
Attachments: Add extension support, allow all types for releases (#12465)
|
4 years ago |
download.go
|
Add a storage layer for attachments (#11387)
|
4 years ago |
editor.go
|
Attachments: Add extension support, allow all types for releases (#12465)
|
4 years ago |
editor_test.go
|
Add Close() method to gogitRepository (#8901)
|
5 years ago |
http.go
|
Set setting.AppURL as GITEA_ROOT_URL environment variable during pushes (#12752)
|
4 years ago |
issue.go
|
Attachments: Add extension support, allow all types for releases (#12465)
|
4 years ago |
issue_dependency.go
|
Fix wrong permissions check when issues/prs shared operations (#9885)
|
5 years ago |
issue_label.go
|
Move jquery-minicolors to npm/webpack (#12305)
|
4 years ago |
issue_label_test.go
|
fix go vet error (#3740)
|
7 years ago |
issue_lock.go
|
Implement "conversation lock" for issue comments (#5073)
|
6 years ago |
issue_stopwatch.go
|
Automatically clear stopwatch on merging a PR (#4327)
|
6 years ago |
issue_timetrack.go
|
[API] Extend times API (#9200)
|
5 years ago |
issue_watch.go
|
Fix PR/issue redirects when having external tracker (#9339)
|
5 years ago |
lfs.go
|
Add default storage configurations (#12813)
|
4 years ago |
main_test.go
|
Unit tests for wiki routers (#3022)
|
7 years ago |
middlewares.go
|
Add gitea-vet (#10948)
|
5 years ago |
migrate.go
|
Adopt repositories (#12920)
|
4 years ago |
milestone.go
|
Issue templates directory (#11450)
|
4 years ago |
projects.go
|
Hide 'New Project board' button for users that are not signed in (#12547)
|
4 years ago |
pull.go
|
Attachments: Add extension support, allow all types for releases (#12465)
|
4 years ago |
pull_review.go
|
Add a way to mark Conversation (code comment) resolved (#11037)
|
5 years ago |
release.go
|
Attachments: Add extension support, allow all types for releases (#12465)
|
4 years ago |
release_test.go
|
Add Close() method to gogitRepository (#8901)
|
5 years ago |
repo.go
|
Add IsTemplate option in create repo ui and api (#12942)
|
4 years ago |
search.go
|
Add detected file language to code search (#10256)
|
5 years ago |
setting.go
|
Mirror: Update DB on Address-Update too (#12964)
|
4 years ago |
setting_protected_branch.go
|
Prevent merge of outdated PRs on protected branches (#11012)
|
5 years ago |
settings_test.go
|
Re-attempt to delete temporary upload if the file is locked by another process (#12447)
|
4 years ago |
topic.go
|
Add API endpoint for accessing repo topics (#7963)
|
5 years ago |
view.go
|
Add a migrate service type switch page (#12697)
|
4 years ago |
webhook.go
|
Don't use legacy method to send Matrix Webhook (#12348)
|
4 years ago |
wiki.go
|
Allow different HardBreaks settings for documents and comments (#11515)
|
5 years ago |
wiki_test.go
|
Fix wiki raw view on sub path (#10002)
|
5 years ago |