Skip to content

Commit 8ecf728

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(api): image downloads with correct filename
Closes #6730
1 parent c3ab8a6 commit 8ecf728

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

invokeai/app/api/routers/images.py

+1
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ async def get_image_full(
253253
content = f.read()
254254
response = Response(content, media_type="image/png")
255255
response.headers["Cache-Control"] = f"max-age={IMAGE_MAX_AGE}"
256+
response.headers["Content-Disposition"] = f'inline; filename="{image_name}"'
256257
return response
257258
except Exception:
258259
raise HTTPException(status_code=404)

0 commit comments

Comments
 (0)