Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 28, 2018

Conversation

oscarpas
Copy link
Contributor

@oscarpas oscarpas commented Jul 7, 2018

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.

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
Copy link

jonathan-martz commented Aug 21, 2018

The Fix is works for me. Magento 2.2.5
@lewisvoncken

@barryvdh
Copy link

Can this be merged, or is anything blocking this?

@lewisvoncken lewisvoncken merged commit b25bd04 into experius:master Aug 28, 2018
@lewisvoncken
Copy link
Contributor

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

@barryvdh
Copy link

Thank jou!

@jonathan-martz
Copy link

Thanks @lewisvoncken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants