Server to upload an image to an S3 bucket then source the S3 url to create an Are.na block.
To setup this server you will need
- AWS_ACCESS_KEY_ID (Amazon Web Services Access Key ID)
- AWS_SECRET_ACCESS_KEY
- AWS_REGION (Amazon Web Services S3 Bucket Region)
- AWS_BUCKET (Amazon Web Services S3 Bucket Name)
- ARENA_CHANNEL (Are.na Channel, eg: "timur-9kkz4_ts-5i")
- ARENA_ACCESS_TOKEN (Are.na access token)
npm install
- Rename the file
.now.json
tonow.json
and populate the env variables with appropriate info - Deploy 2 cloud
- Download Shortcuts app
- Select Photos
- URL:
https://your-server.net
- Get Content of URL
- Advanced
- Method: POST
- Request Body: Form
- Fields
- (File) Key: Body
- (Variable) Photos
- Show Web Page
MIT, see LICENSE.md for details.