discourse/discourse — pull request #2347 by Doppp (2014-05-16 10:34:11+00:00)
Title: Video & Music files Check

When uploading a video or music file while creating a topic, automatic embedding does not happen due to the original way of checking file extensions and concatenating the relevant HTML tags. Now we check for valid video and music file (that are compatible with HTML5 tags) and simply paste the full URL in lieu of a link to the file for download. This allows onebox to do its own magic on the links.