Skip to content

Allow PDF uploads in WYSIWYG image uploader after the SUPEE-9767 patch changed file upload validations

License

Notifications You must be signed in to change notification settings

augustash/ash_pdfuploadaftersupee9767

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Allow PDF uploads in WYSIWYG image uploader after the SUPEE-9767 patch changed file upload validations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages