Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

normalize uploaded filename extension to lowercase for consistent downstream checks

Roland Tannous4c5ded4c52b8
diff --git a/studio/backend/routes/datasets.py b/studio/backend/routes/datasets.py
index 2357cd2c0ec..2faa7121ac8 100644
--- a/studio/backend/routes/datasets.py
+++ b/studio/backend/routes/datasets.py
@@ -296,7 +296,9 @@ def upload_dataset(
raise HTTPException(status_code=400, detail="Empty upload payload")
DATASET_UPLOAD_DIR.mkdir(parents=True, exist_ok=True)
- stored_name = f"{uuid4().hex}_{filename}"
+ # Normalize extension to lowercase so downstream suffix checks work
+ stem = Path(filename).stem
+ stored_name = f"{uuid4().hex}_{stem}{ext}"
stored_path = DATASET_UPLOAD_DIR / stored_name
stored_path.write_bytes(file_bytes)