Skip to content

Expand content type mappings in public storage endpoint #4096

Closed as not planned

Description

@coderabbitai

Description

The public storage endpoint currently has limited content type mappings. More common file types should be added to improve file serving capabilities.

Affected Files

  • packages/serverpod/lib/src/cloud_storage/public_endpoint.dart:9

Context

// TODO: Add more content type mappings.

Suggested Implementation

  • Audit current content type mappings
  • Add mappings for common file types (images, videos, documents, archives, etc.)
  • Consider using a standard MIME type library
  • Add configuration option for custom mappings
  • Add tests for various file types

Impact

Better file serving support, fewer content type issues in production

Related

Metadata

Metadata

Assignees

Labels

area: storageenhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions