Skip to content

Commit 383e3eb

Browse files
committed
Update readme
1 parent f129a21 commit 383e3eb

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Finally, enable the module in Commerce -> Configuration -> Modules. You can now
3737

3838
## Options
3939

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.
4141
- `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.
4242
- `commerce_digitalproduct.resource_parents`: Parents to look under for the resources input. Comma delimited.
4343

@@ -51,15 +51,10 @@ Supported properties:
5151
- checkCount: checks if user is under their max downloads, defaults to 1.
5252
- checkExpiry: checks if file download is expired, defaults to 1.
5353

54-
## Roadmap
54+
## Planned Features
5555

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.
5958
- 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

Comments
 (0)