[#2497] Media preview proxy: added Content-Disposition header with filename to response.
This commit is contained in:
parent
4ee15e991e
commit
02ad1cd8e9
|
@ -87,6 +87,7 @@ defp handle_image_or_video_preview(%{params: params} = conn, url) do
|
|||
) do
|
||||
conn
|
||||
|> put_resp_header("content-type", "image/jpeg")
|
||||
|> put_resp_header("content-disposition", "inline; filename=\"preview.jpg\"")
|
||||
|> send_resp(200, thumbnail_binary)
|
||||
else
|
||||
_ ->
|
||||
|
|
Loading…
Reference in New Issue