template with file import robot returns no data

Archived from the Transloadit support forum. Originally posted on August 15, 2013; details may be outdated, see our docs for current behavior. Original thread

We are using a template which uses the file import robot. We have no uploaded file (as we send an url for the robot) but we do have results. Our application blocks until the file is uploaded and processed. We receive a GET without data instead of a POST with data.

assembly: REDACTED
template: REDACTED

Hey Hielke,

I am not exactly sure I understand what the question is. :slight_smile: Can you please clarify?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Sorry the question was not even given :slight_smile:

The question is does Transloadit ever intentionally not return data when the client blocks until the file is uploaded and processed?

Our application is already using Transloadit for a year using file uploads. The import robot was introduced this week and is giving us some problems with return data.

Hey Hielke,

nope we always return all data. I also noticed in that assembly that the PDF was exported just fine.

To be extra sure that also the imported file is return in the result you can add a “result”: true parameter to the import step.

Please let me know if that helps.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Adding “result” : true to the template step has no effect, the default is true right?

At https://api2.transloadit.com/assemblies/REDACTED i can see that the results are fine, our client isn’t receiving any data because Transloadit does a GET instead of a POST.

As you can see in the above URL, the selected-file field is “” and the uploads field is an empty array. Does this perhaps trigger a GET?

More info: it seems after pressing the ‘Upload’ button, Transloadit IMMEDIATELY returns (with a GET) to our app while the assembly is still processing. We use “wait” : “true” in our app.

Hi Hielke,

Sorry for not being able to address your problem more swiftly. Unfortunately it still is not really clear what exactly goes wrong to me.

Looking at https://transloadit.com/assemblies/view/REDACTED you’re not making use of a notification_url. So I’m wondering where you see that Transloadit does a GET? What kind of connector are you using? An official SDK? Latest version? Maybe you can show me some bits of code so I can try to reproduce?

Oh you’re initiating a batch import from the Jquery-plugin? It’s an uncommon way of importing files (the typical usecase for importing is supported via e.g. cronjobs and a serverside SDK is used). However it is possible, we also feature it in our demo section: https://transloadit.com/demos/misc/import-a-file-over-http.

Hey Hielke,

do you still need help here?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Hi Tim,

My colleague found the problem, it seems to be a problem with attributes in the <form> tag. It was fixed last week.

Hielke

________________________________

Hello Tim,

Thanks for your mail.
Our problem is solved. We had an ajax issue on our page which led to loss of some (transloadit) javascript. I already posted this (two times) on https://community.transloadit.com/t/external_id/tender-problems-7050, however none of this posts showed up?

Met vriendelijke groet,
Topicus BV
Jaap Bos
[email blocked]<***@***>
REDACTED

Okay cool. Closing this then.

Best,
Tim