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

Write an API for creating and serving attachments #4456

Open
3 tasks
jrobbins opened this issue Oct 18, 2024 · 0 comments
Open
3 tasks

Write an API for creating and serving attachments #4456

jrobbins opened this issue Oct 18, 2024 · 0 comments
Assignees

Comments

@jrobbins
Copy link
Collaborator

We will need a way to upload and view attachments.

An attachment is represented by just a URL string that goes to a URL that is local to our server.

  • The API POST method will store the attachment in GCS using the gcs_helpers module. It will return a URL that can be later submitted as part of a form value.
  • The serving GET handler will redirect the user to the URL of the attachment in GCS
  • For local developers, the serving GET handler will return the actual attachment content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant