diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-22 20:47:30 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-22 20:47:30 +0000 |
commit | 0ca9e9b7230cb262a04b524aee8ffe99dbe63060 (patch) | |
tree | b26b9c2667a025a7e72f690e6789292028ece9de /doc/api | |
parent | fe69f9a3841ee9b9ef2b35cb72b3e973c0301fcb (diff) | |
download | gitlab-ce-0ca9e9b7230cb262a04b524aee8ffe99dbe63060.tar.gz |
Add latest changes from gitlab-org/gitlab@13-11-stable-ee
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/projects.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index 50c1356dfd8..d9aabfbc337 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -2016,6 +2016,41 @@ The returned `url` is relative to the project path. The returned `full_path` is the absolute path to the file. In Markdown contexts, the link is expanded when the format in `markdown` is used. +### Max attachment size enforcement + +> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57250) in GitLab 13.11. + +GitLab 13.11 added enforcement of the [maximum attachment size limit](../user/admin_area/settings/account_and_limit_settings.md#max-attachment-size) behind the `enforce_max_attachment_size_upload_api` feature flag. GitLab 14.0 will enable this by default. + +**In Omnibus installations:** + +1. Enter the Rails console: + + ```shell + sudo gitlab-rails console + ``` + +1. Enable the feature flag: + + ```ruby + Feature.enable(:enforce_max_attachment_size_upload_api) + ``` + +**In installations from source:** + +1. Enter the Rails console: + + ```shell + cd /home/git/gitlab + sudo -u git -H bundle exec rails console -e production + ``` + +1. Enable the feature flag to disable the validation: + + ```ruby + Feature.enable(:enforce_max_attachment_size_upload_api) + ``` + ## Upload a project avatar Uploads an avatar to the specified project. |