Opened 3 years ago
Last modified 10 months ago
#13500 new enhancement
Add support for XML in allowed extensions and mime types
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Upload | Version: | |
| Severity: | minor | Keywords: | |
| Cc: |
Description
As with #12849, please add CSV and XML types to wp_ext2type() or get_allowed_mime_types() in functions.php.
The patch I use on my local install of Wordpress is:
--- wp-includes/functions.php~ Wed Dec 23 19:38:49 2009
+++ wp-includes/functions.php Wed Dec 30 16:09:13 2009
@@ -2324,6 +2324,10 @@
'odc' => 'application/vnd.oasis.opendocument.chart',
'odb' => 'application/vnd.oasis.opendocument.database',
'odf' => 'application/vnd.oasis.opendocument.formula',
+ 'py' => 'application/python',
+ 'xml' => 'text/xml',
+ 'csv' => 'text/csv',
) );
}
Change History (3)
- Component changed from General to Upload
- Milestone changed from Unassigned to 3.1
Note: See
TracTickets for help on using
tickets.

csv has been added already, xml is worth adding, py along with a lot of other programming language files should probably also be added.