managedcode-mimetypes

Featured

Use ManagedCode.MimeTypes when a .NET application needs consistent MIME type detection, extension mapping, and content-type decisions for uploads, downloads, or HTTP responses. USE FOR: integrating ManagedCode.MimeTypes into upload or download flows; mapping file extensions to content types in APIs or background processing; reviewing content-type. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

Code & Development 463 stars 35 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 ## Install ```bash dotnet add package ManagedCode.MimeTypes --version 10.0.9 ``` Use `PackageReference` when the repository centralizes dependency versions: ```xml <PackageReference Include="ManagedCode.MimeTypes" Version="10.0.9" /> ``` The current package targets .NET 8, 9, and 10. Keep the version in the repository's existing central package-management file when one is present. ## 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. ## Read MIME Metadata Map file names, URLs, and compound extensions through the generated catalog: ```csharp using ManagedCode.MimeTypes; var reportType = MimeHelper.GetMimeType("report.pdf"); var archiveType = MimeHelper.GetMimeType("archive.tar.gz"); var imageType = MimeHelper.GetMimeT...

Details

Author
managedcode
Repository
managedcode/dotnet-skills
Created
4 months ago
Last Updated
2 days ago
Language
C#
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Featured

managedcode-communication

Use ManagedCode.Communication when a .NET application needs explicit result objects, structured errors, and predictable service or API boundaries instead of exception-driven control flow. USE FOR: integrating ManagedCode.Communication into services or APIs; replacing exception-driven result handling with explicit results; reviewing service boundaries that return. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

463 Updated 2 days ago
managedcode
Data & Documents Featured

managedcode-markitdown

Use ManagedCode.MarkItDown when a .NET application needs deterministic document-to-Markdown conversion for ingestion, indexing, summarization, or content-processing workflows. USE FOR: ManagedCode.MarkItDown integration; document ingestion flows; Office or rich-text conversion to Markdown; indexing and summarization pipelines. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

463 Updated 2 days ago
managedcode
AI & Automation Featured

managedcode-storage

Use ManagedCode.Storage when a .NET application needs a provider-agnostic storage abstraction with explicit configuration, container selection, upload and download flows, and backend-specific integration kept. USE FOR: integrating ManagedCode.Storage into a .NET application; reviewing how a project abstracts file or object storage; deciding whether to centralize storage provider. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

463 Updated 2 days ago
managedcode