Javascript Reference
Categories: mimeType

javascript mimeType suffixes

@March 15, 2008, 1:22 a.m.
suffixesFirefox/Netscape/NN 3 IE 5(Mac) Chrome/Safari/DOM n/a  

Read-only  

Returns a comma-delimited string list of file suffixes associated with the mimeType object, as supported by the plugin enabled for that MIME type. For example, the suffixes that the QuickTime plugin acknowledges for the type video/avi are:

avi, vfw

If you loop through all mimeType objects registered in the browser to find a match for a specific suffix, you can then find out whether the matching mimeType object has a plugin installed for it (via the enabledPlugin property).

 
Example
 
var suff = navigator.mimeTypes["audio/mpeg"].suffixes;
 
Value

String.

 
Default

None.


Powered by Linode.