diff --git a/plugins/storage/server/api/files.ts b/plugins/storage/server/api/files.ts index 8ecc7e08d8..a154ebfc0c 100644 --- a/plugins/storage/server/api/files.ts +++ b/plugins/storage/server/api/files.ts @@ -73,7 +73,8 @@ router.get( async (ctx: APIContext) => { const actor = ctx.state.auth.user; const key = getKeyFromContext(ctx); - const forceDownload = !!ctx.input.query.download; + const forceDownload = + !!ctx.input.query.download || env.FILE_STORAGE === "local"; const isSignedRequest = !!ctx.input.query.sig; const { isPublicBucket, fileName } = AttachmentHelper.parseKey(key); const skipAuthorize = isPublicBucket || isSignedRequest;