Upload document capture images to S3 as PUT request#4401
Conversation
**Why**: Corrresponding to how the presigned URLs are configured, since it's expected that the user could need to change (replace) their selected image. See: https://github.com/18F/identity-idp/blob/e1e8983/app/helpers/aws_s3_helper.rb#L8
zachmargolis
left a comment
There was a problem hiding this comment.
LGTM, one add-on request:
- Can we also update the fake local version too? (Make it
PUTand change toupdateas the action name)Line 160 in 19872f2
Maybe we can update some acceptance specs to exercise this fake controller too? Unsure how big that is |
Yeah, good call. I'll update those.
Unsure off the top of my head, but I'll give it a shot, as it seems like a good thing to have. |
Updated in cd03568.
I've got some tests written in my local branch, though it turned out to be a big more of a rabbit hole than I expected, since we don't have much precedent for testing the document capture JavaScript in feature tests, and there's some basic setup required to resolve an issue with |
Why: Corrresponding to how the presigned URLs are configured, since it's expected that the user could need to change (replace) their selected image.
See: https://github.com/18F/identity-idp/blob/e1e8983/app/helpers/aws_s3_helper.rb#L8
Discussion: https://gsa-tts.slack.com/archives/CNCGEHG1G/p1605187899258500?thread_ts=1605046986.258200&cid=CNCGEHG1G