def METHOD_NAME(value):
    import os
    ext = os.path.splitext(value.name)[1]
    valid_extensions = ['.csv']
    if ext not in valid_extensions:
        raise ValidationError('File not supported!')