Skip to content

High performance self-hosted photo and video management solution.

fix: assetFileFilter path matching (#30394)

Ben Beckford9d03a92b10c0
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<Manifest>({
}
},
- 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 (