El archivo no tiene extensión JPG, pero el content-type se envía correctamente, por lo que me gustaría que Discourse lo actualice automáticamente a una etiqueta img, lo muestre en línea e incluso permita el hotlinking.
Creo que sería beneficioso detectar la foto para el oneboxing (actualizar a etiqueta img) no desde la extensión como se usa actualmente, sino desde el tipo MIME.
Thanks. But that doesn’t quite solve the problem. I’m already using workaround to add img tag manually. My users are not technically skilled so automatic form of hotlinking would be great.
I think it is super bad form to have images that look like HTML web pages so I would object to this being supported as it encourages super bad web hosting habits.
I’m going to disagree with you here. When you get the “Content-Type:” header, that’s when you know what you are dealing with. Otherwise a URL without an extension doesn’t look like anything, not “looks like HTML”.
This is how content negotiation on the web is supposed to work. I should be able to make a directory full of files, and return different versions of them depending on the “Accept” headers the browser offers. If you don’t explicitly say “Accept: image/x-mycoolformat”, but just a “Accept: /”, then maybe I want to hand you image/jpeg, but otherwise give you mycoolformat.
Page titles have many uses, eg distinguishing tabs and titling bookmarks. URLs matter only because Google thinks they should. But I won’t press the point further.