is_attachment()
Return True
if there is a Content-Disposition header and its (case insensitive) value is attachment
, False
otherwise.
Changed in version 3.4.2: is_attachment is now a method instead of a property, for consistency with is_multipart()
.
Please login to continue.