'Return if the file should be handled inline.
If not, and unless your application supports other dispositions
than the standard inline and attachment, it should be handled
as an attachment.'

def is_inline(self):

    return (self.disposition.lower() == 'inline')
