Forum Replies Created

Viewing 1 replies (of 1 total)
  • @hessam68888 I found a fix working for me. You need to use mime type text/plain to make CSV uploads available.

    // add csv
    function edit_upload_types($existing_mimes = array()) {
        // allow .woff
        $existing_mimes['csv'] = 'text/plain';
    
        return $existing_mimes;
    }
    add_filter('upload_mimes', 'edit_upload_types');
    
Viewing 1 replies (of 1 total)