[wp-trac] [WordPress Trac] #51992: Bug in Media Thumbnail for DWG file

WordPress Trac noreply at wordpress.org
Tue Dec 22 08:18:10 UTC 2020


#51992: Bug in Media Thumbnail for DWG file
--------------------------+---------------------
 Reporter:  mschuessler   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.6.1
Component:  Media         |     Version:  5.6
 Severity:  major         |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------

Comment (by mschuessler):

 Hi and thanks for the reply,

 I have a code and a plugin.

 Code:

 function custom_upload_mimes ( $existing_mimes=array() ) {
     $existing_mimes['dwg'] = 'image/vnd.dwg';
     return $existing_mimes;
 }
 add_filter('upload_mimes', 'custom_upload_mimes');

 Plugin: WP Extra File Types | File Upload Types by WPForms

 Best regards

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51992#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list