diff --git a/uc-people.php b/uc-people.php index 0712eb7..55e2360 100644 --- a/uc-people.php +++ b/uc-people.php @@ -121,7 +121,8 @@ function importFile( $filename ){ require_once( ABSPATH . 'wp-admin/includes/file.php' ); } - if( $_FILES[$filename]['type'] !== 'text/csv' ){ + $filePathInfo = pathinfo( $_FILES[$filename]['name'] ); + if( $filePathInfo['extension'] !== 'csv' ){ echo '

Please upload a CSV file

'; return; }