diff --git a/src/collections/server/ModLists.ts b/src/collections/server/ModLists.ts index 0d5e9f2e..bb23c714 100644 --- a/src/collections/server/ModLists.ts +++ b/src/collections/server/ModLists.ts @@ -45,5 +45,12 @@ export const ModLists: CollectionConfig = { // "Invalid MIME type: application/xml". The document itself is stored // with the text/html mimetype the action passes. mimeTypes: ["text/html", "application/xml"], + // Payload streams uploads inline by default, so the browser renders the + // preset HTML instead of saving it. Force a download for every link to the + // file (the Discord modlist embed and the web UI both use this URL). + modifyResponseHeaders: ({ headers }) => { + headers.set("Content-Disposition", "attachment"); + return headers; + }, }, }; diff --git a/src/components/frontend/intelligence/missionMap/MarkerTypePicker.tsx b/src/components/frontend/markers/MarkerTypePicker.tsx similarity index 100% rename from src/components/frontend/intelligence/missionMap/MarkerTypePicker.tsx rename to src/components/frontend/markers/MarkerTypePicker.tsx diff --git a/src/components/frontend/intelligence/missionMap/iconStyle.ts b/src/components/frontend/markers/iconStyle.ts similarity index 100% rename from src/components/frontend/intelligence/missionMap/iconStyle.ts rename to src/components/frontend/markers/iconStyle.ts diff --git a/src/components/frontend/intelligence/missionMap/markerIcon.ts b/src/components/frontend/markers/markerIcon.ts similarity index 100% rename from src/components/frontend/intelligence/missionMap/markerIcon.ts rename to src/components/frontend/markers/markerIcon.ts