Download src/backend/base/langflow/services/storage/utils.py from opendigital/agent-flow: direct link, hf CLI and curl.
- Browser
- Download file 219 Bytes
-
https://huggingface.co/opendigital/agent-flow/resolve/main/src/backend/base/langflow/services/storage/utils.py
- Command line
-
hf download hf://opendigital/agent-flow/src/backend/base/langflow/services/storage/utils.py
-
curl -L -o utils.py https://huggingface.co/opendigital/agent-flow/resolve/main/src/backend/base/langflow/services/storage/utils.py
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") | |