8000 Should file extensions be mandatory? · Issue #69 · hzrd149/blossom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Should file extensions be mandatory? #69
Open
@aaccioly

Description

@aaccioly

Optional extensions introduce a lot of ambiguity and undefined behaviour to the Blossom specs. I've seen this sentiment echoed by various people across different discussions.

So, I'm opening this issue to discuss: Should file extensions really be optional? And if so, why?

A few references:

Anthony's unsolicited, likely uninformed opinion: I would make extensions mandatory. I would also make server-side Content-Type detection mandatory (possibly falling back to application/octet-stream). And I would 100% remove this responsibility from clients.

This would simplify things and remove ambiguity in cases like:

  1. A Blossom server forwarding GET /{SHA256} to other blob stores, CDNs, etc.
  2. Users uploading media with one extension (or none) and requesting the blob with another.
  3. Defining the type in the blob descriptor (i.e., making it mandatory)
  4. Mirroring between servers, where the original server's content type detection becomes the single source of truth.

Possible counterexamples:

  1. Encrypted attachments (e.g., for GiftWrapped DMs), where users don’t want to reveal anything about the nature of the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0