Browse Source

fix: extract correct filename by excluding query params

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2218/head
Pranav C 2 years ago
parent
commit
5ce5993375
  1. 2
      packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts

2
packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts

@ -1416,7 +1416,7 @@ export default async (
path: `noco/${sDB.projectName}/${table.title}/${key}`
},
value?.map(attachment => ({
fileName: attachment.filename,
fileName: attachment.filename?.split('?')?.[0],
url: attachment.url,
size: attachment.size,
mimetype: attachment.type

Loading…
Cancel
Save