From 9d03a92b10c0d46c08c1fd2f94c1176235ef65b8 Mon Sep 17 00:00:00 2001 From: Ben Beckford Date: Thu, 30 Jul 2026 02:08:24 -0700 Subject: [PATCH] fix: assetFileFilter path matching (#30394) --- packages/plugin-core/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/plugin-core/src/index.ts b/packages/plugin-core/src/index.ts index e3f180f98b..7b91ed7111 100644 --- a/packages/plugin-core/src/index.ts +++ b/packages/plugin-core/src/index.ts @@ -89,7 +89,8 @@ const methods = wrapper({ } }, - assetFileFilter: ({ data, config }) => matchValueResult(data.asset.originalFileName || '', config), + assetFileFilter: ({ data, config }) => + matchValueResult(config.usePath ? data.asset.originalPath : data.asset.originalFileName, config), assetLocationFilter: ({ config, data }) => { if (