Tai Truong
fix readme
d202ada
raw
history blame contribute delete
219 Bytes
from langflow.services.storage.constants import EXTENSION_TO_CONTENT_TYPE
def build_content_type_from_extension(extension: str):
return EXTENSION_TO_CONTENT_TYPE.get(extension.lower(), "application/octet-stream")