Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

getMimeType

Queries the MIME type of an attachment in Optimizely Campaign.

Type: String

Parameters

NameTypeValue
sessionIdStringID of the session
attachmentIdlongID of the attachment

Return values

MIME type of the attachment

Code structure

String getMimeType(String sessionId, long attachmentId)