Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Web API: Decide on presentation of uploaded files #306

Open
Tracked by #65
tadhg-ohiggins opened this issue Sep 8, 2016 · 0 comments
Open
Tracked by #65

Web API: Decide on presentation of uploaded files #306

tadhg-ohiggins opened this issue Sep 8, 2016 · 0 comments
Assignees

Comments

@tadhg-ohiggins
Copy link
Contributor

My current approach to this is:

  • In list views, show JSON about the file (metadata), but not the file content itself, because that would be rather unwieldy.
  • If the file is requested individually, return the contents of the file instead of the metadata.

One assumption here is that the file contents are the only real information the user will want, once they have its id. This may not be valid.

Options include:

  • Leave it as is.
  • Always return the full metadata as JSON, and include the full contents in the contents field.
  • Add a new endpoint to retrieve individual file metadata.
  • Change the file storage approach so that the metadata includes only a handle, and not the contents. This will require an endpoint for accessing the file contents. (See Web API: Decide on & implement file storage for uploads #302 ).
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