diff --git a/src/adapter/localFolder.ts b/src/adapter/localFolder.ts index c1bf973c..9a4c0a3e 100644 --- a/src/adapter/localFolder.ts +++ b/src/adapter/localFolder.ts @@ -98,7 +98,7 @@ class LocalFolderAdapter extends BaseAdapter { } const contentType = info.get_content_type(); - if (contentType === 'image/png' || contentType === 'image/jpeg') + if (contentType && contentType.startsWith('image/')) files.push(child); }