Skip to content

Commit 0d57001

Browse files
NEXT-20706 - Add the missing keys allowed_extensions, private_allowed_extensions and private_local_download_strategy to the shopware.yaml configuration
1 parent c3a24dc commit 0d57001

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

guides/hosting/infrastructure/filesystem.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,26 @@ shopware:
4949
# The Adapter Configuration
5050
```
5151

52+
If you want to regulate the uploaded file types, then you could add the keys `allowed_extensions`for the public filesystem or `private_local_download_strategy` for the private filesystem.
53+
With the `private_local_download_strategy` key you could choose the download strategy for private files (e.g., the downloadable products):
54+
55+
```yaml
56+
shopware:
57+
filesystem:
58+
public:
59+
# The Adapter Configuration
60+
private:
61+
# The Adapter Configuration
62+
allowed_extensions: # Array with allowed file extensions for public filesystem
63+
private_allowed_extensions: # Array with allowed file extensions for private filesystem
64+
private_local_download_strategy: # Name of the download strategy: php, x-sendfile or x-accel
65+
```
66+
67+
Following download strategies are valid:
68+
* `php` (default): A streamed response of content type `application/octet-stream` with binary data
69+
* `x-sendfile` (Apache only): X-Sendfile allows you to use PHP to instruct the server to send a file to a user, without having to load that file into PHP. You must have the [`mod_xsendfile`](https://github.com/nmaier/mod_xsendfile) Apache module installed.
70+
* `x-accel` (Nginx only): X-accel allows for internal redirection to a location determined by a header returned from a backend. See the [example configuration](https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/).
71+
5272
## Integrated adapter configurations
5373

5474
### Local

0 commit comments

Comments
 (0)