diff --git a/src/index.ts b/src/index.ts index 4cf3956..921bc64 100644 --- a/src/index.ts +++ b/src/index.ts @@ -271,6 +271,8 @@ export default { res.headers.set("cache-control", "public, max-age=18000"); res.headers.set("content-type", descriptor.mime_type ?? "application/octet-stream"); + res.headers.set("content-disposition", + `inline; filename="${encodeURIComponent(descriptor.title ?? uuid)}"`); if (option === "download") { res.headers.set("content-disposition",