# experius/module-wysiwygdownloads

> This module makes it possible to upload different filetypes inside the WYSIWYG-editor (Media Gallery). Extra filetypes are Word (doc, docm, docx, odt), Excel (csv, xml, xls, xlsx, ods), PDF (pdf), Compressed Folder (zip, tar)

`composer require experius/module-wysiwygdownloads`

Canonical URL: https://packagento.com/experius/module-wysiwygdownloads

## At a glance

- **Vendor**: experius (https://packagento.com/experius.md)
- **Latest version**: 1.3.0 — released 2026-04-09
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/experius/module-wysiwygdownloads and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require experius/module-wysiwygdownloads:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

This module makes it possible to upload different filetypes inside the WYSIWYG-editor (Media Gallery). Extra filetypes are Word (doc, docm, docx, odt), Excel (csv, xml, xls, xlsx, ods), PDF (pdf), Compressed Folder (zip, tar)

## README

Mage2 Module Experius WysiwygDownloads
====================

This module makes it possible to upload different filetypes inside the WYSIWYG-editor. 

   ``experius/module-wysiwygdownloads``
   
 - [Main Functionalities](#main-functionalities)
 - [Additional Information](#additional-information)
 - [Important Issue in Magento < 2.2](#important-issue-in-magento--22)
 - [Change log](#change-log)

## Main Functionalities

The following filetypes are available by default and it is possible to add extra filetypes to the allowed filetypes in the configuration of the module (General > Content Management > WYSIWYG Options > Extra Allowed Filetypes):
 
 - Word (doc, docm, docx)
 - Excel (csv, xml, xls, xlsx)
 - PDF (pdf)
 - Compressed Folder (zip, tar)

Use the following instructions to upload a file and set a download link:
  
 
 ---

## Additional Information


1. Go to a WYSIWYG-editor (for example in the content of a CMS Page or a product textarea attribute)
2. Select a part of the text which is used as a Download Link (it is also possible to add the Download Link to an Image)
3. Click on the 'Insert/Edit Link'-button (under the textformat dropdown, do not use the 'Insert/Edit Image'-button)
4. Click on the 'Browse'-icon behind the Link URL-inputfield
5. Select the Folder in which you want to upload the Downloadable File (recommended is to create a new Downloads folder to store all the Downloadable Files)
6. Click the 'Browse files'-button
7. Select the File from your Documents and click on the 'Open/Insert'-button
8. Select the Uploaded File
9. Click on the 'Insert File'-button
10. (The 'File Upload'-windows will automatically close)
11. It is recommended to set the Target to 'Open Link in a New Window)
11. Press on the 'Insert'-button in the 'Insert/Edit Link'-popup
12. The part of the text which was selected is now a Download Link for the selected file

To Unlink the Downloadable File just set the cursor on the Download Link and Click on the 'Unlink'-button.

 ---


Add NGINX redirect if you use it as internal URL else where and use store_code in url

```
    if ( $request_uri ~ ^/(.+)/media/wysiwyg/PDF/(.*)(.pdf$|.PDF$) ) {
            rewrite ^/(.+)/media/wysiwyg/PDF/(.*)(.pdf$|.PDF$) /media/wysiwyg/PDF/$2$3;
    }
```

## Important Issue in Magento < 2.2

### Fix

This is an issue in Magento and is solved in 2.2.2 for more information see the following commit:

https://github.com/magento/magento2/commit/62378774f239c2019e39bdd353c8c6c674b54fb1


### Issue

![bildschirmfoto 2017-09-20 um 16 44 22](https://user-images.githubusercontent.com/30178722/30651034-cd9c998c-9e24-11e7-9f1f-26f777ec0633.png)
![bildschirmfoto 2017-09-20 um 16 49 11](https://user-images.githubusercontent.com/30178722/30651037-ce3745f4-9e24-11e7-9b43-4344691a7ab5.png)

**src is correct:**
`<img src="http://domain.com/pub/media/wysiwyg/.thumbs/home/home-t-shirts.png?rand=1505918839" alt="home-t-shirts.png">`

**src is incorrect:**
`<img src="http://domain.com/admin_111/cms/wysiwyg_images/thumbnail/file/aHRtbC1jaGVhdC1zaGVldC5wbmc-/key/08c5525fa3b16c91f2ad0f757282e78f6abf1f797e8c30628598f1b3824934d8/" alt="html-cheat-sheet.png">`


 ---

## Change log

Version 1.0.8 - Jan 19, 2018 | Lewis Voncken

 * [TASK] Updated README.md and CHANGE.log
   Added Important Issue in Magento < 2.2

---

Version 1.0.7 - Sep 4, 2017 | Lewis Voncken

 * [BUGFIX] Solved problem with Product Image upload => Notice: Undefined index: extension

---

Version 1.0.6 - June 12, 2017 | Derrick Heesbeen

 * [BUGFIX] make it compatible with the Experius FileManager

---

Version 1.0.5 - June. 7, 2017 | Lewis Voncken

 * [TASK] Updated README.md with nginx redirect for internal url with storecodes

---

Version 1.0.4 - May. 18, 2017 | Lewis Voncken

 * [BUGFIX] Solved error message Unsupported image format

---

Version 1.0.3 - Sep. 23, 2016 | Lewis Voncken

 * [TASK] Changed README
 * [TASK] Added Open Software License

---

Version 1.0.2 - Sep. 19, 2016 | Lewis Voncken

 * [TASK] Version update to 1.0.2 added configuration option to add more allowed filetypes beside the Default Extra Filetypes

---

Version 1.0.1 - Sep. 17, 2016 | Lewis Voncken

 * [TASK] Changed the logic so file extensions can be added in the configuration

---

Version 1.0.0 - Sep. 16, 2016 | Lewis Voncken

 * Initial Commit

---

## Changelog

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.2.0)

*  [FEATURE][IN23-254] Add ods as default allowed filetype. Refactor classes abit mostly to avoid "unused parameters such as $subject" listed below. *(Boris van Katwijk)*
*  [FEATURE][IN23-254] Add support for .odt files and make .ods mimeType mapping complete in di.xml. *(Boris van Katwijk)*
*  [FEATURE][IN23-254] Add plugin to override the label from "Upload image" to "Upload image / file". This more clearly presents the functionality. *(Boris van Katwijk)*


### 1.1.1 (2023-03-14)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.1.1)

*  [FEATURE][SGO-630] Adding extra check if there is a config value. *(Jeffrey Leeuw)*


### 1.1.0 (2021-01-25)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.1.0)

*  Fix typo *(Matthias Zeis)*
*  [FEATURE][NAU-607] Added file icon support for PDF files *(Lewis Voncken)*


### 1.0.9 (2018-08-28)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.0.9)

*  Fix upload issue in 2.2.5 by adding file and mime types *(Oscar Pastarus)*


### 1.0.8 (2018-01-31)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.0.8)

*  [TASK] Updated README.md and CHANGE.log *(Mr. Lewis)*
*  [TASK] Updated README index *(Mr. Lewis)*
*  [TASK] Added Solution for the Magento issue *(Mr. Lewis)*
*  Solves the notice in Magento 2 system log. Error was: Notice: unserialize(): Error at offset 0 in Settings.php line 86 *(Matt Wint)*


### 1.0.7 (2017-09-04)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.0.7)

*  [BUGFIX] Solved problem with Product Image upload *(lewisvoncken)*


### 1.0.6 (2017-06-12)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.0.6)

*  [BUGFIX] make it compatible with the Experius FileManager *(Derrick Heesbeen)*


### 1.0.5 (2017-06-07)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.0.5)

*  [TASK] README.md update *(Lewis Voncken)*


### 1.0.4 (2017-05-18)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.0.4)

*  [BUGFIX] Solved error message Unsupported image format. *(Lewis Voncken)*


### 1.0.3 (2016-09-23)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.0.3)

*  [TASK] Changed the location of the configuration to General > Content Management > WYSIWYG Options > Extra Allowed Filetypes *(Lewis Voncken)*
*  [TAKS] Added Open Software License *(Lewis Voncken)*
*  [TASK] Changed README *(Lewis Voncken)*


### 1.0.2 (2016-09-19)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.0.2)

*  [TASK] Version update to 1.0.2 added configuration option to add more allowed filetypes beside the Default Extra Filetypes *(Lewis Voncken)*


### 1.0.1 (2016-09-17)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.0.1)

*  [TASK] Changed the logic so file extensions can be added in the configuration *(Lewis Voncken)*


### 1.0.0 (2016-09-16)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/1.0.0)



### dev-master (2016-09-16)

[View Release](git@github.com:experius/Magento-2-Module-Experius-WysiwygDownloads.git/commits/tag/dev-master)

*  [TASK] Initial Commit *(Lewis Voncken)*

## Recent Versions

| Version | Released |
|---|---|
| 1.3.0 | 2026-04-09 |
| dev-master | 2026-04-09 |
| 1.2.7 | 2025-04-23 |
| 1.2.6 | 2024-07-03 |
| 1.2.5 | 2024-07-03 |
| 1.2.4 | 2024-07-02 |
| 1.2.3 | 2024-02-08 |
| 1.2.2 | 2024-01-22 |
| 1.2.1 | 2024-01-11 |
| 1.2.0 | 2023-10-27 |

Showing 10 of 22 versions. Full release history on https://packagento.com/experius/module-wysiwygdownloads.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| php | ^8 |

## Quality

Latest release (1.3.0) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 17 | 17 warnings (ruleset: Magento2) — 9 auto-fixable with phpcbf |
| PHPMD | Pass | 0 |  |
| Cpd | Pass | 0 |  |
| Composer validate | Pass | 0 |  |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 2 | 2 | – | – |
| 2.4.8 | – | 2 | 2 | – |
| 2.4.9 | – | – | 2 | 2 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["experius/module-wysiwygdownloads"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

experius is a Magento 2 vendor on Packagento. See https://packagento.com/experius.md for their full catalogue.

