2017-11-12 1 views
2

のための新しいMIMEタイプを追加は、私は、このコードによってメディアにいくつかのDFXPファイルをアップロードするメディア

Sorry, this file type is not permitted for security reasons. 

私は上のこの機能を入れても、

function custom_upload_mimes($existing_mimes) { 
    // add webm to the list of mime types 
    $existing_mimes['dfxp'] = 'application/dfxp'; 
    // return the array back to the function with our added mime type 
    return $existing_mimes; 
} 
add_filter('upload_mimes', 'custom_upload_mimes'); 

[はい]私はママをチェックして見つけました。

どうすればこの問題を解決できますか?私は、 'アプリケーション/ DFXP' と呼ばれるMIMEタイプがあるとは思わない

答えて

0

この

$existing_mimes['dfxp'] = 'application/xml'; 

$existing_mimes['dfxp'] = 'application/dfxp'; 
のinstedしてみてください
関連する問題