WordPress.org

Ready to get started?Download WordPress

Forums

Using image uploader on a Mac (1 post)

  1. lctkw
    Member
    Posted 4 years ago #

    I am currently unable to use the flash uploader (it does not appear as an option) with any browser on my Mac - it works fine with Windows-based browsers, however. I understand that it is disabled when WordPress detects a Mac client and mod_security in use (any explanation why, btw?), and I have been able to get flash uploader to appear (and work) by commenting out these lines from /wp-admin/includes/media.php, as described here.

    771: if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), ‘mac’) && apache_mod_loaded(’mod_security’) )
    772:     $flash = false;

    That said, I'm hoping to tweak my settings on the server side so that I don't have to keep editing my media.php whenever it gets updated. I've tried adding various combinations of the following to my .htaccess file, but no luck. Anyone has any suggestions?

    <IfModule mod_security.c>
      <Files async-upload.php>
        SecFilterEngine Off
        SecFilterScanPOST Off
      </Files>
    </IfModule>
    <IfModule security_module>
      <Files async-upload.php>
        SecFilterEngine Off
        SecFilterScanPOST Off
      </Files>
    </IfModule>
    <IfModule security2_module>
      <Files async-upload.php>
        SecFilterEngine Off
        SecFilterScanPOST Off
      </Files>
    </IfModule>

Topic Closed

This topic has been closed to new replies.

About this Topic