×

Upload issues

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #515
    Ali Khallad
    Keymaster

    Hi, we have installed the plugin and selected to accept Adobe image format. When we test to upload .eps files we are getting error, please see attached image.

    https://drive.google.com/open?id=1IsZeHUbkg8aTWl1Z-8uTsU_GdCIp2aVK
    It says” This filetype is not allowed based on security reason”.

    Any idea?

    #517
    Ali Khallad
    Keymaster

    Your wordpress website prevents EPS file, you may want to try opening the wp-config.php file of your WordPress installation and above the line where it says:
    /* That’s all, stop editing! Happy blogging. */

    add the following code:
    define('ALLOW_UNFILTERED_UPLOADS', true);

    Or preferably Add the following to your theme functions.php

    function accept_eps_mimes($mimes = array()) {
    
    	// Add a key and value for the EPS file type
    	$mimes['eps'] = "application/postscript";
    
    	return $mimes;
    }
    
    add_action('upload_mimes', 'accept_eps_mimes');
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Upload issues’ is closed to new replies.