diff --git a/packages/nocodb/src/modules/jobs/migration-jobs/nc_job_001_attachment.ts b/packages/nocodb/src/modules/jobs/migration-jobs/nc_job_001_attachment.ts index e7f9a2f8a0..c3de89516a 100644 --- a/packages/nocodb/src/modules/jobs/migration-jobs/nc_job_001_attachment.ts +++ b/packages/nocodb/src/modules/jobs/migration-jobs/nc_job_001_attachment.ts @@ -295,7 +295,7 @@ export class AttachmentMigrationProcessor { for (const attachment of attachmentArr) { if ('path' in attachment || 'url' in attachment) { const filePath = `nc/uploads/${ - attachment.path.replace(/^download\//, '') || + attachment.path?.replace(/^download\//, '') || decodeURI( `${new URL(attachment.url).pathname.replace( /.*?nc\/uploads\//,