Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

How to handle attachments with identical digests on a single post #217

Open
quentez opened this issue Jan 30, 2014 · 0 comments
Open

How to handle attachments with identical digests on a single post #217

quentez opened this issue Jan 30, 2014 · 0 comments

Comments

@quentez
Copy link
Contributor

quentez commented Jan 30, 2014

Is a post allowed to have two attachments with the same digest but different names? Imagine an app that would allow for a user to pick an avatar and a profile background, storing both in the same post with a different name for each, nothing prevents the user from picking the same file twice.

This becomes more problematic if apps are allowed to publish posts with attachments with different content_type but same digest: In that case, what Content-Type should the attachment endpoint use when returning an attachment?

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

No branches or pull requests

1 participant