ContentDisposition.isAttachment

bool isAttachment()

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

Returns

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