Here is the bigger picture of what this fits into:
It's node.js - and it REQUIRES Red Hat's Mobile Application Platform or FeedHenry
- Create a form using Drag and Drop in RHMAP
- Add a photo field as the 1st field in the form (the rest can be whatever you want)
- Create a forms project and add the form to it
- Edit the default cloud service in RHMAP
- Add this file to the
lib
folder - Add
require('./lib/handleforms');
to yourapplication.js
- In RHMAP set the required env vars
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_BUCKET
- Add this file to the
- Deploy everything and run
** NOTE: for the full system you will also have to stand up your own AWS S3 bucket to accept the outbound photos, the lambda service in your AWS account, and run the web app.