Commit 02ad1cd8 authored by Ivan Tashkinov's avatar Ivan Tashkinov

[#2497] Media preview proxy: added Content-Disposition header with filename to response.

parent 4ee15e99
Pipeline #29984 passed with stages
in 10 minutes and 50 seconds
......@@ -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
_ ->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment