You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NEXT-20706 - Add the missing keys allowed_extensions, private_allowed_extensions and private_local_download_strategy to the shopware.yaml configuration
Copy file name to clipboardExpand all lines: guides/hosting/infrastructure/filesystem.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,26 @@ shopware:
49
49
# The Adapter Configuration
50
50
```
51
51
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/).
0 commit comments