import re


def get_data_type(path):
    """
    Get the data type, either image/png or application/pdf

    Parameters
    ----------
    - path: path of the file
    """
    if re.match(r'.*(jpg|jpeg)$', path.lower()):
        return 'image/png'
    if re.match(r'.*pdf$', path.lower()):
        return 'application/pdf'
    return ''