cloudairambo / utils /validate_utils.py
rihancloud's picture
Deploy clean FastAPI backend without node_modules
99fdb5f
Raw History Blame Contribute Delete
119 Bytes
import magic
def get_mime_type(filepath: str):
mime = magic.Magic(mime=True)
return mime.from_file(filepath)