WordPress Upload Pdf, doc, ppt file types
- Article
- Comment
WordPress Upload Pdf, doc, ppt file types. Here is a function which will help you to solve the error while uploading other files types on your wordpress. Here is the code. Add the below function on your theme’s functions.php.
function kv_extra_mine_types($mime_types){ $mime_types['docx'] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'; $mime_types['doc'] = 'application/msword'; $mime_types['pdf'] = 'application/pdf'; return $mime_types; } add_filter('upload_mimes', 'kv_extra_mine_types', 1, 1);