Skip to content

Commit 4188ca5

Browse files
committed
Document default value for nginx client_max_body_size
1 parent 3ad91c6 commit 4188ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/topics/Editing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Attachments are stored on disk below the `attachments_base_dir` defined in the d
4242
*Note:*
4343

4444
- If you set the format constraint to `*.jpeg` and your browser has access to a camera, QWC2 will allow you to directly upload images captured from the camera.
45-
- You can set the allowed attachment extensions and maximum file sizes globally by setting `allowed_attachment_extensions` and `max_attachment_file_size` in the data service configuration. You may also need to set/increase `client_max_body_size` in `qwc-docker/api-gateway/nginx.conf`.
45+
- You can set the allowed attachment extensions and maximum file sizes globally by setting `allowed_attachment_extensions` and `max_attachment_file_size` in the data service configuration. You may also need to set/increase `client_max_body_size` in `qwc-docker/api-gateway/nginx.conf`, which defaults to `1M`.
4646
- You can also set the allowed attachment extensions and maximum file sizes per dataset by setting `max_attachment_file_size_per_dataset` and `allowed_extensions_per_dataset` in the data service configuration. If you set the per dataset values, the global settings will be disregarded (i.e. if an attachment satisfies the per dataset constraint it will be considered valid, even if it violates the global constraint).
4747
- To ensure the uploaded files are properly rendered as download links in GetFeatureInfo responses, use the [`qwc-feature-info-service`](https://github.com/qwc-services/qwc-config-generator).
4848

0 commit comments

Comments
 (0)