From a7a7a5c3e310af00f936933d7c67e1892539e278 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 7 Dec 2023 20:12:38 -0500 Subject: fixed where thumbnail and other image uris get placed on server. --- src/server/ApiManagers/UploadManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/ApiManagers/UploadManager.ts b/src/server/ApiManagers/UploadManager.ts index c3b8643d3..9b0457a25 100644 --- a/src/server/ApiManagers/UploadManager.ts +++ b/src/server/ApiManagers/UploadManager.ts @@ -349,7 +349,7 @@ export default class UploadManager extends ApiManager { Jimp.read(savedName).then(img => (!origSuffix ? [{ width: 400, suffix: SizeSuffix.Medium }] : Object.values(DashUploadUtils.Sizes)) // .forEach(({ width, suffix }) => { - const outputPath = InjectSize(filename, suffix); + const outputPath = serverPathToFile(Directory.images, InjectSize(filename, suffix) + ext); if (!width) createReadStream(savedName).pipe(createWriteStream(outputPath)); else img = img.resize(width, Jimp.AUTO).write(outputPath); }) -- cgit v1.2.3-70-g09d2