Continuing the discussion from Add setting to disable hotlinking of large image files:
I’d like to propose detection of images by MIME type, not by extension.
I put JPG url on line:
File doesn’t have JPG extension, but content-type is correctly sent, so I’d like to see Discourse to automatically update it to img tag, show inline and even hotlink.
I believe it would be beneficial to detect photo for oneboxing (updating to img tag) not from extension like it is being used currently, but from MIME type.