Commerce File adds the ability to sell access to file downloads to your Drupal Commerce site. It extends the Commerce License module with a new license type that grants customers access to download the files you upload to the products they purchase.
Features
- The "License completion message" checkout pane allows the customer to download the newly licensed files even if they are not logged in.
- Licensed files can be downloaded or streamed from the user's Files tab.
- File licenses can be time limited and are automatically expired (by cron) once that time passes.
- The number of downloads / streams can be limited. Once the limit is reached, the file is listed but can't be accessed.
- Integrates with Amazon S3, allowing licensed files to be retrieved directly from Amazon, using a secret and temporary URL.
Related contributed modules
- File Field Paths - Provides token support for the upload directory name and file name
- File Field Sources - Provides the ability to reference existing files on the site.
Supporting organizations:
Development and Support
Project information
- Project categories: Access control, E-commerce, Media
- Ecosystem: Commerce Kickstart
1,290 sites report using this module
- Created by recrit on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-2.4
released 1 March 2026
Works with Drupal: ^10.3 || ^11
Install:
Development version: 8.x-2.x-dev updated 1 Mar 2026 at 14:05 UTC



