[wp-trac] [WordPress Trac] #65057: For our use of WordPresswe need to be able to upload and manage .dwg and .dwt files

WordPress Trac noreply at wordpress.org
Fri Apr 10 08:59:36 UTC 2026


#65057: For our use of WordPresswe need to be able to upload and manage .dwg and
.dwt files
-----------------------------+----------------------
 Reporter:  ahjelmqv         |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Upload           |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by audrasjb):

 * status:  new => closed
 * version:  6.9.4 =>
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Hello and thanks for the ticket,

 This is indeed plugin territory. You should be able to find some plugins
 that allow full customization on which files are allowed or not, but you
 can also use the following code, either in a custom plugin or in your
 theme's functions.php file (make sure you create a child theme first).

 {{{
 /**
  * Add dwg and dwt to allowed media types
  */
 function ahjelmqv_add_mime_types( $mime_types ) {
         $mime_types['dwg'] = 'image/vnd.dwg';
         $mime_types['dwt'] = 'application/x-autocad';
         return $mime_types;
 }

 add_filter( 'mime_types', 'ahjelmqv_add_mime_types' );
 }}}

 I'm closing this ticket as `wontfix` as it is plugin territory.

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


More information about the wp-trac mailing list