Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: download dxf file

Brad Barbin53842f019a12
diff --git a/apps/erp/app/routes/file+/preview+/$bucket.$.tsx b/apps/erp/app/routes/file+/preview+/$bucket.$.tsx
index 95864b3fa5..7ed09c0256 100644
--- a/apps/erp/app/routes/file+/preview+/$bucket.$.tsx
+++ b/apps/erp/app/routes/file+/preview+/$bucket.$.tsx
@@ -21,6 +21,16 @@ const supportedFileTypes: Record<string, string> = {
wav: "audio/wav",
ogg: "audio/ogg",
flac: "audio/flac",
+ dxf: "application/dxf",
+ dwg: "application/dxf",
+ stl: "application/stl",
+ obj: "application/obj",
+ glb: "application/glb",
+ gltf: "application/gltf",
+ fbx: "application/fbx",
+ ply: "application/ply",
+ off: "application/off",
+ step: "application/step",
};
export let loader = async ({ request, params }: LoaderFunctionArgs) => {
diff --git a/apps/mes/app/routes/file+/preview+/$bucket.$.tsx b/apps/mes/app/routes/file+/preview+/$bucket.$.tsx
index 25434161b2..2c6b0e3e1b 100644
--- a/apps/mes/app/routes/file+/preview+/$bucket.$.tsx
+++ b/apps/mes/app/routes/file+/preview+/$bucket.$.tsx
@@ -21,6 +21,16 @@ const supportedFileTypes: Record<string, string> = {
wav: "audio/wav",
ogg: "audio/ogg",
flac: "audio/flac",
+ dxf: "application/dxf",
+ dwg: "application/dxf",
+ stl: "application/stl",
+ obj: "application/obj",
+ glb: "application/glb",
+ gltf: "application/gltf",
+ fbx: "application/fbx",
+ ply: "application/ply",
+ off: "application/off",
+ step: "application/step",
};
export let loader = async ({ request, params }: LoaderFunctionArgs) => {