CM Download (CMDM) - Downloads - File Extensions and Download / Upload Types
Download and Upload Types
The CM Download Manager plugin supports several kinds of downloads. The types of files supported include those that the admin defines, URLs, and shortcodes which produce "download" or "purchase/ add to cart" buttons coming from other plugins installed on your system (for example EDD shortcodes).
Setting Up Supported File Extensions and Download Type
First, navigate to the Admin Dashboard → CM Downloads Pro → Settings.
Click on the Upload Page tab.
Next, scroll down to the Features section. Here, the admin can define which file types the CM Download Manager will support by listing the extensions of the file types separated by commas.
The admin can also choose which types of uploads the Download Manager will allow, from among the choices of files, URLs, and shortcodes.
Download Type 1) File Download/Upload
If the admin allows files as an upload type, the authors of downloads can upload one or more files to be included and displayed on the download page:
Uploading files can be done directly from the user computer (Select Files) or from the WordPress wp-content/upload folder where most plugins and the WP media library stores files.
Download Type 2) URL Download/Upload
If the admin allows URLs as an upload type, the authors of the downloads can specify a URL upon upload. Then, when a user clicks on the "Download" button for the URL download, the user will be redirected to the URL that the author defined.
Below is a screenshot of the Uploader form where the authors will need to define the URL of the upload:
Download Type 3) Shortcode Download/Upload
If the admin allows shortcode as an upload type, the authors of downloads can specify a shortcode to be displayed on the download page.
In this example, the shortcode produces a payment button that redirects the user to the shopping cart.