Acconut / uppy-transloadit-preset-demo

A demo application for using the Uppy Transloadit Preset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uppy Transloadit Preset Demo

  1. 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"
    }
  }
}
  1. Insert your Transloadit Auth Key, Secret and Template ID into config/index.js
  2. Run npm start and navigate to http://localhost:3000

About

A demo application for using the Uppy Transloadit Preset


Languages

Language:JavaScript 95.0%Language:CSS 4.7%Language:HTML 0.2%