Commit 617741a3 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'sh-add-max-upload-api-docs' into 'master'

Add docs about project upload API size enforcement

See merge request gitlab-org/gitlab!59692
parents 8fcf24e3 ffb34d4a
...@@ -2016,6 +2016,41 @@ The returned `url` is relative to the project path. The returned `full_path` is ...@@ -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 absolute path to the file. In Markdown contexts, the link is expanded when
the format in `markdown` is used. 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 ## Upload a project avatar
Uploads an avatar to the specified project. Uploads an avatar to the specified project.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment