• I tried to put a mime for .mobi but it won’t work on both versions (1.0 and 2.0) plus the uploader automatically defaults to Adobe Acrobat instead of “All Files”.

    I put this block of code in WordPress, and I tried to test it by trying to upload the file on the Media Library and was able to upload it. But in Caldera Forms it wont work. Is there any way I can add this mime? Thanks!

    //Additional File Format Upload mobi
    function allow_personal_uploads ( $existing_mimes=array() ) {
        // allow uploading .MOBI files
        $existing_mimes['mobi'] = 'application/x-mobipocket-ebook'; 
        // return amended array
        return $existing_mimes;
    add_filter('upload_mimes', 'allow_personal_uploads');

    The page I need help with: [log in to see the link]

  • The topic ‘Upload .mobi’ is closed to new replies.