'Return a file object if this handler is activated.'

def file_complete(self, file_size):

    if (not self.activated):
        return
    self.file.seek(0)
    return InMemoryUploadedFile(file=self.file, field_name=self.field_name, name=self.file_name, content_type=self.content_type, size=file_size, charset=self.charset, content_type_extra=self.content_type_extra)
