experius / Magento-2-Module-Experius-WysiwygDownloads

Available At Packagist
https://packagist.org/search/?q=experius
Open Software License 3.0
102 stars 27 forks source link

Fix upload issue in 2.2.5 by adding file and mime types #15

Closed oscarpas closed 6 years ago

oscarpas commented 6 years ago

Magento 2.2.5 adds a mime type check in the uploadFile method in Magento/Cms/Model/Wysiwyg/Images/Storage.php

If the mime type check fails the upload is aborted, giving the error message ”File validation failed.”

The allowed mime types are defined in Magento/Cms/etc/di.xml

So, we need to add file and mime types we want to support to the allowed and image_allowed arrays in di.xml.

jonathan-martz commented 6 years ago

The Fix is works for me. Magento 2.2.5 @lewisvoncken

barryvdh commented 6 years ago

Can this be merged, or is anything blocking this?

lewisvoncken commented 6 years ago

@barryvdh en @jonathan-martz This has been merged and I have just released 1.0.9

barryvdh commented 6 years ago

Thank jou!

jonathan-martz commented 6 years ago

Thanks @lewisvoncken