Support » Plugin: WP Better Attachments » wpba_attachment_list and mid files

  • Resolved zed0015

    (@zed0015)


    Hi,
    I’m trying to get the attachement files (jpg and mid files) and i have only the jpg files. How can i force the lugin to display the mid file.
    Thank you by advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dholloran

    (@dholloran)

    Hi,

    Just to clarify. Is it that the file can not be uploaded or is it that it can not be displayed?

    Thanks,
    Dan

    Thread Starter zed0015

    (@zed0015)

    Hi,
    The file can be uploaded but not displayed. But i found the solution 🙂 Thank you!

    For who have the same problem, the solution was to add the mime type in the function “is_audio” in the file file class-wp-better-attachments.php. The result is :

    protected function is_audio( $mime_type )
    {
    $audio_mime_types = array(
    ‘audio/mpeg’,
    ‘audio/mpeg’,
    ‘audio/ogg’,
    ‘audio/wav’,
    ‘audio/x-midi’,
    ‘audio/midi’,
    ‘audio/mid’
    );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wpba_attachment_list and mid files’ is closed to new replies.