• Resolved Carolina Marques

    (@carolinamarques)


    Hi!

    I’m running WordPress Multisite and I’m not able to upload flash files (.swf files) into Media Library.
    I have already tried to add swf to “Upload file types” in “Network Settings” but still doesn’t work. I’m getting the error message:

    “agenda.swf” has failed to upload due to an error
    Sorry, this file type is not permitted for security reasons.”

    Any help?
    Thanks in advance for your support 😉

    Best regards,
    Carolina Marques

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You have to add them in via an mu-plugin

    // Mimes
    add_filter('upload_mimes', 'add_custom_upload_mimes');
    function add_custom_upload_mimes($existing_mimes){
    	$existing_mimes['epub'] = 'application/epub+zip'; //allow epub files
    	$existing_mimes['webm'] = 'video/webm'; //allow webm file
    	return $existing_mimes;
    }
    Thread Starter Carolina Marques

    (@carolinamarques)

    Hi Ipstenu!

    Thanks for your reply.
    I made copy / paste from your code to my functions.php file and it still doesn’t work.

    The error message continues to appear:
    “agenda.swf” has failed to upload due to an error
    Sorry, this file type is not permitted for security reasons.”

    Thread Starter Carolina Marques

    (@carolinamarques)

    Problem solved with this plug-in:
    http://wordpress.org/plugins/ap-extended-mime-types/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WordPress Multisite and .swf files upload’ is closed to new replies.