Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blob metadata in messages #604

Open
clehner opened this issue Feb 15, 2021 · 0 comments
Open

Blob metadata in messages #604

clehner opened this issue Feb 15, 2021 · 0 comments

Comments

@clehner
Copy link

clehner commented Feb 15, 2021

What's the problem you want solved?

Posts and about messages are currently not including the size or content type of linked blobs. This means a user or application doesn't know how large a linked blob is before fetching it, and in some cases doesn't know the type of the blob (although that can often be inferred from the filename, or inferred broadly from the context).

Is there a solution you'd like to recommend?

Include the blob size and type, when known, in mention objects (objects in the mentions array of a post) and when setting a profile picture (the image property of an about message). When a file is uploaded, the browser may provide the file's content type. Otherwise it could be detected using the file command, or using some modules, or just omitted. The size can be detected using blobs.size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant