Get name from Content-Type header

def _get_name_from_content_type(self, request):
        """ Get name from Content-Type header """

        content_type = request.META.get('CONTENT_TYPE', None)
        if content_type:
            # remove the possible charset-encoding info
            return util.strip_charset(content_type)
        return None