[wp-trac] [WordPress Trac] #25275: Checking if attachment is audio/video

WordPress Trac noreply at wordpress.org
Thu Sep 12 21:15:35 UTC 2013


#25275: Checking if attachment is audio/video
--------------------------+------------------------------
 Reporter:  danielpataki  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.6
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by danielpataki):

 Hi nacin,

 I did think about using the mime type but I think a more general-purpose
 function might be a more reliable and more flexible solution. The mime
 type would work pretty well for audio and video, but wouldn't be too
 useful for documents, archive files and so on. I addition some files like
 markdown files don't have an official mime type.

 By using the filter in wp_ext2type() users could customize the thing
 completely.

 Let me know if I am completely unaware of how mime types work, I am not
 very familiar with them :(

 Daniel

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25275#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list