ContentDisposition.isAttachment

Determines if a Content-Disposition has a value of "attachment".

class ContentDisposition
bool
isAttachment
()

Return Value

Type: bool

true if the value matches "attachment", otherwise false.