diff --git a/pkgs/api/_file.ts b/pkgs/api/_file.ts index d5d5618..d3b7bab 100644 --- a/pkgs/api/_file.ts +++ b/pkgs/api/_file.ts @@ -133,6 +133,7 @@ export const _ = { const fname = arr.join("-") + "." + ext; const ctype = mime.getType(fname); if (ctype) { + res.headers.set("content-disposition", `inline; filename="${fname}"`); res.headers.set("content-type", ctype); }