Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author kimipooh

    (@kimipooh)

    Ummm. I succeeded a kml/kmz file using your code.
    Please check the file extension list in the plugin setting.

    Thread Starter elotse

    (@elotse)

    I tested it with this file:
    http://www.kk4you.de/wordpress/wp-content/maps/dodekanes.kmz

    I have got the following info:

    „dodekanes.kmz“ konnte nicht hochgeladen werden.
    Aus Sicherheitsgründen ist dieser Dateityp nicht erlaubt.

    Plugin Author kimipooh

    (@kimipooh)

    I downloaded dodekanes.kmz file and tried to upload to my WordPress (WordPress 4.4.2 and WordPress 4.5 RC2).
    I can do it.

    Please check the file extension seting in the plguin setting.
    Screenshot: https://drive.google.com/file/d/0B02WfvGc5CB2YjR1Z0pWcjg3Xzg/view?usp=sharing

    Thread Starter elotse

    (@elotse)

    I use exactly your settings and than the save buttom.
    The only action is the information <Updated> without adding the new mime typ.
    I tryed it also with the example jpeg2002 = image/jpeg
    Its doing nothing

    Plugin Author kimipooh

    (@kimipooh)

    If “kmz = application/vnd.google-earth.kmz” in the end line of “List of allowed mime types and file extensions by WordPress” in “Mime Type Settings” was added and a kmz file cannot be updated to the Media, please add the following php code to functions.php in the theme.

    add_filter('upload_mimes','add_custom_mime_types');
    	function add_custom_mime_types($mimes){
    		return array_merge($mimes,array (
    			'kmz' => 'application/vnd.google-earth.kmz',
    		));
    	}

    Reference: https://paulund.co.uk/change-wordpress-upload-mime-types

    Thread Starter elotse

    (@elotse)

    SORRY
    Its doing nothing
    Remark: I’m using an child themes of twentyfourteen
    The code was added to the child functions.php

    Plugin Author kimipooh

    (@kimipooh)

    In case that the above code on functions.php in the theme does not work, the other plugin or other setting may be wrong. Please deactivate other plugins and try to it.

    Basically, the function for adding mime type is prepared by WordPress.
    Reference: https://codex.wordpress.org/Plugin_API/Filter_Reference/upload_mimes

    Thread Starter elotse

    (@elotse)

    After deactivating all plugins it works.
    Thanks for your support

    Thread Starter elotse

    (@elotse)

    The plugin “Media Library Assistant” blocked this plugin!!!

    Plugin Author kimipooh

    (@kimipooh)

    Thank you for your information.

    Plugin Author kimipooh

    (@kimipooh)

    I fixed the compatibility with “Media Library Assistant” plugin.
    You can active both of new version (2.0.2) and “Media Library Assistant” plugin.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘kmz and kml typs are not working!’ is closed to new replies.