the attachment to download
the JMap data source id
JMap.Attachment
.previewAttachments(
{
id: "c56a4180-65aa-42ec-a945-5fd21dec0538",
organizationId: "c56a4180-65aa-42ec-a945-5fd21dec0538",
thumbnail: "",
fileId: "d9428888-122b-11e1-b85c-61cd3cbb3210",
fileName: "panorama.jpg",
fileSize: 8675309,
mimeType: "image/jpeg"
},
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
)
.then(() => console.log("Preview opened"))
.catch(error => console.error("Preview failed", error))
JMap.Attachment.previewAttachments
Opens a client-side preview modal for the provided file attachment.
The preview currently supports standard images and 360° panoramas; other file types will fall back to a download message.