Skip to main content

dotnet-managedcode-mimetypes

Use ManagedCode.MimeTypes when a .NET application needs consistent MIME type detection, extension mapping, and content-type decisions for uploads, downloads, or HTTP responses.

소스 정보

저장소
managedcode/PrompterOne
최근 소스 활동
2026년 4월 19일 19:47
감지된 SKILL.md 언어
영어
스타
45
포크
9

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
dotnet-managedcode-mimetypes
description
Use ManagedCode.MimeTypes when a .NET application needs consistent MIME type detection, extension mapping, and content-type decisions for uploads, downloads, or HTTP responses.
compatibility
Requires a .NET application that integrates ManagedCode.MimeTypes or evaluates MIME type mapping behavior.
# ManagedCode.MimeTypes ## Trigger On - integrating `ManagedCode.MimeTypes` into upload or download flows - mapping file extensions to content types in APIs or background processing - reviewing content-type handling for files, blobs, or attachments - documenting a reusable MIME-type decision point in a .NET application ## Workflow 1. Identify where the application needs stable MIME-type decisions: - upload validation - download response headers - storage metadata - attachment processing 2. Centralize content-type mapping instead of scattering ad-hoc string tables across the codebase. 3. Use one library boundary for extension and MIME lookups. 4. Validate the extensions and media types that matter to the product. 5. Document any product-specific overrides separately from the library defaults. ```mermaid flowchart LR A["File name or extension"] --> B["ManagedCode.MimeTypes lookup"] B --> C["Resolved MIME type"] C --> D["Upload validation, storage metadata, or HTTP response"] ``` ## Deliver - guidance on where MIME lookup belongs in application code - recommendations for centralized content-type decisions - validation expectations for real file types used by the product ## Validate - MIME mapping is not duplicated across multiple services or controllers - important file types are verified explicitly - response or storage code uses the resolved type consistently
GitHub에서 보기