Transloadit return status not getting fired

Hi,

I’m prototyping uppy, transloadit, and robodog to S3 from WordPress to explore the API’s before I integrate them. I’m just using simple script includes at the moment for ease of use till I decide how to do it.

I get the ‘upload-success’ fired ok but none of the '‘transloadit:result’ are getting triggered.

Any clues as to why?

Could you link us to the code?

For Robodog:

Robodog Upload Test

const uppyrobodog = Robodog.dashboard(’#dashboard’, {
params: {
auth: { key: TRANSLOADIT_EXAMPLE_KEY },
template_id: TRANSLOADIT_EXAMPLE_TEMPLATE
}
})
.on(‘transloadit:result’, (result) => {
console.log(result)
})

For Transloadit:

uppytl.on(‘transloadit:complete’, (assembly) => {
// Could do something fun with this!
console.log(assembly.results)
})

uppytl.on(‘transloadit:result’, (stepName, result) => {
const file = uppytl.getFile(result.localId)
var resultContainer = document.createElement(‘div’)
resultContainer.innerHTML = <div> <h3>Name: ${file.name}</h3> <img src="${result.ssl_url}" /> <br /> <a href="${result.ssl_url}">View</a> </div>
document
.getElementById(‘uppy-transloadit-result2’)
.appendChild(resultContainer)
})

At first glance, that looks okay, and the TRANSLOADIT_EXAMPLE_TEMPLATE var refers to an actual Template ID in your Transloadit account that has some Steps? Can we see the Assembly Instructions of that, too?

The assembly is just a straight default S3 template.

“steps”: {
“:original”: {
“robot”: “/upload/handle”
},
“exported”: {
“use”: “:original”,
“robot”: “/s3/store”,
“credentials”: “PaulS3Test”
}
}
}

uppytl.on(‘transloadit:complete’, (assembly) => {
// Could do something fun with this!
console.log(assembly.results)
}) comes back correctly, and the file is stored on S3 aok.

I’m testing from a local dev server.

Is it not triggering on ‘transloadit:result’ because there is no processing, just output?

That could be it, could you try to add result: true to your exported Step?

ty, I’ll give it a go.

Tried:

{
“steps”: {
“:original”: {
“robot”: “/upload/handle”
},
“exported”: {
“use”: “:original”,
“robot”: “/s3/store”,
“credentials”: “fns3test”,
“result”: “true”
}
}
}

but still no result.

Docs also say " For your convenience, this is automatically set to true for any Steps that have no subsequent Step and false for all “in-between” Steps."

ah, think I got it now.

@sonicviz could you please share how you solved this? I’m having the exact same issue.