-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: object upload #121
feat: object upload #121
Conversation
fd02f4e
to
9b67aef
Compare
860244a
to
1c56952
Compare
pkg/models/models.go
Outdated
// ========= | ||
|
||
type UploadFilesRequest struct { | ||
UploadFile []byte `form:"uploadFile"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be byte
or multipart.File
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think multipart.FileHeader
, updating
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
…ase updates Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
8b537ad
to
386367a
Compare
Signed-off-by: Sarah Funkhouser <[email protected]>
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
pkg/objects
to handle parsing of mulitpart forms and storage of objects to a backend (disk, s3 are supported currently)upload
handler, this can be used to upload files but it won't associate those files to another other objects in the database, but could be associated later with theFile
resolver. This will updated to require object association in a follow-up PR that enforces permissions (along with the file graph resolver)get
cmds to the cli, waiting to to do the create/update until the file <-> object association is completeUpload
scalar for integration withgraph
, an example of this was added to theuser
schema:Example Graph, add a avatar file:
(via apollo UI):
Request:
Response:
or via the cli:
Example REST:
Depends on: Yamashou/gqlgenc#237