mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 00:14:10 +08:00
editor improvements
* add callout, youtube embed, image, video, table, detail, math * fix attachments module * other fixes
This commit is contained in:
@@ -26,7 +26,7 @@ export async function prepareFile(
|
||||
|
||||
const buffer = await file.toBuffer();
|
||||
const sanitizedFilename = sanitize(file.filename).replace(/ /g, '_');
|
||||
const fileName = `${rand}_${sanitizedFilename}`;
|
||||
const fileName = sanitizedFilename.slice(0, 255);
|
||||
const fileSize = buffer.length;
|
||||
const fileExtension = path.extname(file.filename).toLowerCase();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user