TagSpaces is an offline, open source, document manager with tagging support
fix: issue with tmb generation for text files on s3
Ilian Sapundshiev491c061ab7e4
diff --git a/src/renderer/services/thumbsgenerator.ts b/src/renderer/services/thumbsgenerator.tsindex bc66f14ab..5a4b883e7 100644--- a/src/renderer/services/thumbsgenerator.ts+++ b/src/renderer/services/thumbsgenerator.ts@@ -870,11 +870,11 @@ export async function generateTGAThumbnail(export async function generateTextThumbnail(fileURL: string,maxSize: number = AppConfig.maxThumbSize,- loadTextFilePromise: (url: string, asText: boolean) => Promise<string>,+ loadTextFilePromise: (url: string) => Promise<string>,): Promise<string> {try {// Load content- const rawContent = await loadTextFilePromise(fileURL, true);+ const rawContent = await loadTextFilePromise(fileURL);if (!rawContent) return '';// PERFORMANCE: Only process the start of the file