mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-29 21:37:15 -05:00
fix: Asset type selector dropdown #6413; asset entry layout; asset download content disposition (#6595)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
@@ -54,6 +54,6 @@ async def get_recipe_asset(recipe_id: UUID4, file_name: str):
|
||||
file = Recipe.directory_from_id(recipe_id).joinpath("assets", file_name)
|
||||
|
||||
try:
|
||||
return FileResponse(file)
|
||||
return FileResponse(file, content_disposition_type="attachment", filename=file_name)
|
||||
except Exception as e:
|
||||
raise HTTPException(status.HTTP_404_NOT_FOUND) from e
|
||||
|
||||
Reference in New Issue
Block a user