Skip to content

Type (optional) #5

@bndw

Description

@bndw

Type (optional)

Similar to filenames, since files are identified by their hash, media hosts can implement on-the-fly type conversion, if they wish.

I interpreted (and implemented) this as meaning the file type (e.g. extension) is optional, since file names are optional and content type can be detected.

e.g. this request:

GET /70327f48469f541ccafcd82f8204d3b797c8e36790cd431adcaeea048ee/_.jpg

is the same as this request:

GET /70327f48469f541ccafcd82f8204d3b797c8e36790cd431adcaeea048ee

While I see the appeal for a client to offload this work to the media server, I do think it's leaking application-level concerns into the data layer. There are a lot of digital media formats, and on-the-fly transcoding could easily eat into resources that may otherwise be serving static content.

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