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
Copy file name to clipboardExpand all lines: README.md
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Finally, enable the module in Commerce -> Configuration -> Modules. You can now
37
37
38
38
## Options
39
39
40
-
-`commerce_digitalproduct.download_method`: method that will be used to download the file. Out of the box, it supports redirect (redirects to a URL), forced (force download the file with PHP, slow for large files), sendfile (X-Accel-Redirect, requires additional server setup). Defaults to redirect.
40
+
-`commerce_digitalproduct.download_methods`: methods that can be used to download the file. Out of the box, it supports redirect (redirects to a URL) and forced (force download the file with PHP, not good for large files. Only works for resources if the resource is a web link). Additionally, you can use a custom snippet download method. Check out the digitalproduct.get_file snippet for how to implement a custom snippet download method.
41
41
-`commerce_digitalproduct.expiration_times`: Labels and values for expiration times that appear in the product form. Uses a TV checkbox like format. Values need to be strtotime compatible.
42
42
-`commerce_digitalproduct.resource_parents`: Parents to look under for the resources input. Comma delimited.
43
43
@@ -51,15 +51,10 @@ Supported properties:
51
51
- checkCount: checks if user is under their max downloads, defaults to 1.
52
52
- checkExpiry: checks if file download is expired, defaults to 1.
53
53
54
-
## Roadmap
54
+
## Planned Features
55
55
56
-
### 1.0.0-pl
57
-
58
-
- Snippet to protect file URLs, count downloads, and enforce download_expiry. Also the option to remove user group at the end of expiry.
56
+
- X-Accel-Redirect support.
57
+
- Option to remove user group at the end of expiry.
59
58
- Disable/enable either files and resources display in the product form via a system setting.
60
-
61
-
62
-
### ??? Future
63
-
64
-
- Option to let user customize the secret for the URL as well as customizing the amount of bytes openssl\_random\_pseudo\_bytes uses. Method is already implemented, just needs form fields.
65
-
- Commerce dashboard reports (products with most downloads, more?).
59
+
- Commerce dashboard reports (products with most downloads, more?).
60
+
- Option to let user customize the secret for the URL as well as customizing the amount of bytes openssl\_random\_pseudo\_bytes uses. Method is already implemented, just needs form fields.
0 commit comments