[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 06:38:23 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:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  6.9.4
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 To be able to upload tech drawings, I appended two rows in wp/wp-
 includes/functions.php to allow .dwg and .dwt files to be recognized and
 allowed.
 Would be nice to have them included in core if there is no risks with
 allowing.

 --
 # within file     wp/wp-includes/functions.php


 function wp_get_mime_types() {

         return apply_filters(
                 'mime_types',
                 array(
 ...
                         'dwg'                          => 'image/vnd.dwg',
                         'dwt'                          =>
 'application/x-autocad',
 ...

                 )
         );
 }

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


More information about the wp-trac mailing list