WordPress.org

Codex

User:T31os/Allowed Mimes

T31os 19:00, 25 May 2010 (UTC)

This is a list of the currently supported mime types in WordPress, taken from Trunk at the time of writing.

NOTE: This is not how they are stored, the arrays and formatting are simply to make the the list easier to read.

[image-types] => Array
	(
		[jpg|jpeg|jpe] => image/jpeg
		[gif] => image/gif
		[png] => image/png
		[bmp] => image/bmp
		[tif|tiff] => image/tiff
		[ico] => image/x-icon
	)

[video-types] => Array
	(
		[asf|asx|wax|wmv|wmx] => video/asf
		[avi] => video/avi
		[divx] => video/divx
		[flv] => video/x-flv
		[mov|qt] => video/quicktime
		[mpeg|mpg|mpe] => video/mpeg
		[mp4|m4v] => video/mp4
		[ogv] => video/ogg
		[mkv] => video/x-matroska
	)

[text-types] => Array
	(
		[txt|asc|c|cc|h] => text/plain
		[csv] => text/csv
		[tsv] => text/tab-separated-values
		[rtx] => text/richtext
		[css] => text/css
		[htm|html] => text/html
	)

[audio-types] => Array
	(
		[mp3|m4a|m4b] => audio/mpeg
		[ra|ram] => audio/x-realaudio
		[wav] => audio/wav
		[ogg|oga] => audio/ogg
		[mid|midi] => audio/midi
		[wma] => audio/wma
		[mka] => audio/x-matroska
	)

[application-types] => Array
	(
		[rtf] => application/rtf
		[js] => application/javascript
		[pdf] => application/pdf
		[doc|docx] => application/msword
		[pot|pps|ppt|pptx|ppam|pptm|sldm|ppsm|potm] => application/vnd.ms-powerpoint
		[wri] => application/vnd.ms-write
		[xla|xls|xlsx|xlt|xlw|xlam|xlsb|xlsm|xltm] => application/vnd.ms-excel
		[mdb] => application/vnd.ms-access
		[mpp] => application/vnd.ms-project
		[docm|dotm] => application/vnd.ms-word
		[pptx|sldx|ppsx|potx] => application/vnd.openxmlformats-officedocument.presentationml
		[xlsx|xltx] => application/vnd.openxmlformats-officedocument.spreadsheetml
		[docx|dotx] => application/vnd.openxmlformats-officedocument.wordprocessingml
		[onetoc|onetoc2|onetmp|onepkg] => application/onenote
		[swf] => application/x-shockwave-flash
		[class] => application/java
		[tar] => application/x-tar
		[zip] => application/zip
		[gz|gzip] => application/x-gzip
		[exe] => application/x-msdownload
		[odt] => application/vnd.oasis.opendocument.text
		[odp] => application/vnd.oasis.opendocument.presentation
		[ods] => application/vnd.oasis.opendocument.spreadsheet
		[odg] => application/vnd.oasis.opendocument.graphics
		[odc] => application/vnd.oasis.opendocument.chart
		[odb] => application/vnd.oasis.opendocument.database
		[odf] => application/vnd.oasis.opendocument.formula
		[wp|wpd] => application/wordperfect
	)
This article is a ROUGH DRAFT. The author is still working on this document, so please do not edit this without the author's permission. The content within this article may not yet be verified or valid. This information is subject to change.
This page is marked as incomplete. You can help Codex by expanding it.