Uppy Transloadit Preset Demo
- Create a Template with following instructions (but enter your own S3 credentials):
{
"steps": {
":original": {
"robot": "/upload/handle"
},
"filter": {
"use": ":original",
"robot": "/file/filter",
"accepts": [
[
"${file.mime}",
"regex",
"image"
]
],
"error_on_decline": true
},
"resize_image": {
"use": "filter",
"robot": "/image/resize",
"resize_strategy": "fillcrop",
"width": 300,
"height": 300,
"format": "png",
"imagemagick_stack": "v2.0.3"
},
"avatar": {
"use": [
"resize_image"
],
"robot": "/s3/store",
"credentials": "marius-test-credentials"
}
}
}
- Insert your Transloadit Auth Key, Secret and Template ID into
config/index.js
- Run
npm start
and navigate to http://localhost:3000