Flag of Ukraine   We stand with the brave people of Ukraine. Stop the war. Find out how you can help.

Robodog: Upload API

Warning
Robodog has been deprecated, its usage is no longer recommended.

Upload files straight to Transloadit from your own custom UI. Give us an array of files, and we’ll give you an array of results!

const resultPromise = Robodog.upload(files, {
  params: {
    auth: { key: '' },
    template_id: '',
  },
})

resultPromise is a Promise that resolves with an object:

  • successful - An array containing data about files that were uploaded successfully
  • failed - An array containing data about files that didn’t upload
  • transloadit - An array of Assembly statuses

files

An array of File objects, obtained from an <input type="file"> or elsewhere.

These can also be Blobs with a .name property. That way you can upload files that were created using JavaScript.

Transloadit

All the options to the Transloadit plugin are supported.