1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-02-01 19:15:01 +02:00

Server: Fixes #7463: Fixed regression introduced by form-parse lib update

This commit is contained in:
Laurent Cozic 2022-12-18 16:00:34 +00:00
parent c50fdde5da
commit 31c66ae3cd

View File

@ -38,7 +38,7 @@ export async function putItemContents(path: SubPath, ctx: AppContext, isBatch: b
if (totalSize > batchMaxSize) throw new ErrorPayloadTooLarge(`Size of items (${formatBytes(totalSize)}) is over the limit (${formatBytes(batchMaxSize)})`);
} else {
const filePath = parsedBody?.files?.file ? parsedBody.files.file.path : null;
const filePath = parsedBody?.files?.file ? parsedBody.files.file.filepath : null;
try {
const buffer = filePath ? await fs.readFile(filePath) : Buffer.alloc(0);