-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support image-based R&C for Paper LPAs (#200)
* Support image-based R&C for Paper LPAs - Alter schema to change fields available based on form channel - Add `FileUpload` and `File` struct types - `FileUpload` is used in submissions, `File` is used to pass back - Add `S3Client.UploadFile` to copy base64-encoded files into S3 - On submission of Paper LPAs, store `FileUpload` objects in S3 and return a reference to them in `File` - Update the fixtures UI to support uploads - Fixed some misplaced if/then/else statements in the JSONSchema For CTC-146 #minor * Handle error from hashing a file upload #patch
- Loading branch information
Showing
7 changed files
with
242 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package shared | ||
|
||
type File struct { | ||
Path string `json:"path"` | ||
Hash string `json:"hash"` | ||
} | ||
|
||
type FileUpload struct { | ||
Filename string `json:"filename"` | ||
Data string `json:"data"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters