DownloadFile is a module to direct download files or images.
Features
- Added four formatters
- Usable in templates and views
- Accessible formatters
Drupal 10
This module requires no modules outside of Drupal core.
Install as you would normally install a contributed Drupal module.
For configuration, select the 'Direct Download' format for your file fields.
Drupal 7
Dependency
- DownloadFile 7.x depends on the File core module.
Installation
- Copy the download_file folder to the modules folder in your installation.
- Enable the module using Administration -> Modules (/admin/modules).
- Configure user permissions in Administration -> People, click on the Permissions tab (admin/people/permissions), go to DownloadFile module part and "Access direct download file".
- Manage teaser and full node display settings at Administration -> Structure -> Content types -> "your type" -> manage display (admin/structure/types/manage/"your type"/display).
- Choose a formatter to apply to files or images in that field. Four new formatters "Direct download file" appear in the select list.
- Configure the format of the link accessible at Administration -> Configuration -> Media -> Download file (/admin/config/media/download-file).
Using with Views module
Similarly, you can use a formatter when displaying files or images attached to nodes using File or Image in a View through the Views UI.
- Manage display at Administration -> Structure -> Views (/admin/structure/views) and add a new view by clicking the "Add new view" link (/admin/structure/views/add) or edit an existing view by clicking the "Edit" link (/admin/structure/views/edit/"your view").
- Click on a file field or image field.
- Choose a formatter in select list "Format" to apply at this field. Four new formatters "Direct download file" appear.
- Click on "Save" button and see the display in the preview.
Project information
- Module categories: Content Display, Media, Site Structure
- 3,040 sites report using this module
- Created by xMATTx on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
2.0.0-alpha2
released 8 March 2024
Works with Drupal: ^8.8 || ^9.0 || ^10.0
✓ Recommended by the project’s maintainer.
Install:
Development version: 2.0.x-dev updated 19 Mar 2024 at 07:30 UTC
7.x-2.1
released 7 March 2017
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-2.x-dev updated 9 Mar 2017 at 22:28 UTC