Browse Source

fix(nc-gui): non-image attachments in shared form

pull/7177/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
36012f39bf
  1. 1
      packages/nc-gui/composables/useAttachment.ts

1
packages/nc-gui/composables/useAttachment.ts

@ -6,6 +6,7 @@ const useAttachment = () => {
const getPossibleAttachmentSrc = (item: Record<string, any>) => {
const res: string[] = []
if (item?.data) res.push(item.data)
if (item?.file) res.push(window.URL.createObjectURL(item.file))
if (item?.signedPath) res.push(`${appInfo.value.ncSiteUrl}/${item.signedPath}`)
if (item?.signedUrl) res.push(item.signedUrl)
if (item?.path) res.push(`${appInfo.value.ncSiteUrl}/${item.path}`)

Loading…
Cancel
Save