diff --git a/packages/nocodb/src/lib/meta/api/attachmentApis.ts b/packages/nocodb/src/lib/meta/api/attachmentApis.ts index e6a13a70ee..df6738763c 100644 --- a/packages/nocodb/src/lib/meta/api/attachmentApis.ts +++ b/packages/nocodb/src/lib/meta/api/attachmentApis.ts @@ -52,7 +52,7 @@ export async function upload(req: Request, res: Response) { const attachments = await Promise.all( (req as any).files?.map(async (file) => { - const fileName = `${nanoid(6)}_${file.originalname}`; + const fileName = `${nanoid(18)}${path.extname(file.originalname)}`; let url = await storageAdapter.fileCreate( slash(path.join(destPath, fileName)),