Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter karll10

    (@karll10)

    I have tried everything and i cannot get this to work at all, any help would be much appreciated as i have been looking for something like this for ages, cheers…

    Plugin Author ben.moody

    (@benmoody)

    Hi

    There are two issues here:

    1. The error is due to the malformed file name. The name has both a . (dot) and a – (dash) in it this causes an error with plupload.

    2. The wav file you passed has a mime type of audio/x-wav. WordPress’s list of allowed safe file types only registers audio/wav.

    You will have to add your custom mime type using one of my plugin’s filters. Add this to your functions.php file in your theme:

    add_filter( ‘prso_adv_uploader_reject_mimes’, ‘prso_uploader_add_mime’ );
    function prso_uploader_add_mime( $allowed_mime_types ) {

    $allowed_mime_types[‘wav’] = ‘audio/x-wav’;

    return $allowed_mime_types;
    }

    This should sort you out.

    Thanks

    Ben

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘File types’ is closed to new replies.