The simplest way to offer a download link is by configuring the directly within your View.
If your goal is to download the in the view itself rather than attached files: Install the Views Data Export module. Add a new display of type Data Export to your View.
Sometimes browsers try to open PDFs or images in a new tab instead of downloading them. To force a download, you can use these methods: drupal view download file
In the field settings, look for the Formatter dropdown. Choose Generic file or Table of files .
For more control over the look (like turning the link into a button), use the section in your View field settings: The simplest way to offer a download link
This module provides formatters like "Direct download file" which can be applied to fields within the Views UI. 3. Creating Bulk or ZIP Downloads
Install the File Download Link module. This provides a specific "File Download Link" formatter in your View settings that automatically adds the HTML5 download attribute to the link. Sometimes browsers try to open PDFs or images
To ensure it links correctly, look for the "Link this field to" option and select "File" .