hmm why do (images/pdf) files sometimes previewable in browsers and sometimes download automatically? :think_bread:

Follow

@xarvos i know of two ways to force a download: you can use the "download" attribute of an <a> tag or set the header Content-Disposition: attachment; filename=foo.jpg

@bonifartius the case i was talking about must be the latter then, because i checked <a> attribute
Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.