Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 980 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 980 Bytes

Description

Fix/allow PDF files to be uploaded via WYSIWYG image upload process after the SUPEE-9767 security patch changed file validation in Mage_Core_Model_File_Validator_Image.

See StackOverFlow question and answer:

After Magento 1.9 SUPEE-9767 allow pdf upload not working - Invalid Mime Type

Overrides

  • Mage_Core_Model_File_Validator_Image (skips validation if mime type is application/pdf)
  • Mage_Cms_Model_Wysiwyg_Images_Storage (skips resizing if mime type is application/pdf)
  • Adds pdf to array of allowed and image_allowed extensions

Installation

Dependencies

  • Mage_Core
  • Mage_Cms