Archived from the Transloadit support forum. Originally posted on January 17, 2012; details may be outdated, see our docs for current behavior. Original thread
Hello
We’ve got blocking:true on our params hash (as mentioned by Felix in the last comment here: http://transloadit.com/docs/api-basics ) as well as wait: true in the config for the jQuery plugin. This was working fine until recently.
Today it appears we’re getting the asynchronous behavior in responses from your backend; instead of getting redirects to the results url with a “transloadit” param containing results, we’re getting a call with assembly_id and assembly_url parameters.
Are you no longer supporting blocking calls? We’re faced with rewriting 6 different interactions with your service.
sorry for the trouble. As far as I know, nothing changed in this regard, so this is pretty weird.
Please keep in mind though, that the blocking: true; behavior is undocumented and could therefore change in the future. We did not change it, but I am just letting you know. You should rather not build on it.
It’s perfectly fine to use for latency benchmarking or single import jobs, but you may have to implement your own error handling if this is what you’d like to do in all cases.
Can you point me to one of your assembly ids please for further investigation?
And please let me know what integration flow you are trying to achieve, then I could possibly tell you a better solution.
Here are some assembly ids. They’re running fine on your end (coming back with “ok”:“ASSEMBLY_COMPLETED”) but then instead of getting a form POST to our server with the transloadit response in a
“transloadit” param, we’re getting a GET with assembly_url and related params. Because this affected a live service I’ve had to recode to then fetch the results from the assembly_url.
It seems that the ‘wait:true’ parameter is not actually doing what it should be doing? I’ve also stopped getting a modal popup from the js in the browser with the progress bar.
BTW, I assumed something had changed with blocking:true because Felix
G committed a change to your PHP lib on github on the 13th to “remove references to blocking param”.
P.S. the flow we’re trying to achieve should be simple:
User is selecting an image (generally less than 1mb in size, often less than 300k) and uploading it with a few other form parameters. We want to hit you guys to do some image resizes while the users’ browser blocks, and then to hit our server once the work is complete. I.e. a traditional file upload path as far as the user is concerned.
Otherwise I’m going to have to build a polling layer as the user really cannot continue with their work until the processing is completed on your end.
I understand why you don’t want to support ‘blocking:true’ for large video uploads etc but for small images it’s the ideal integration.
well your flow is simple enough. I am not sure why you’d need blocking: true for it though. You could just use the jQuery plugin with wait: true. It would wait for us to complete the resizing and then append all results to your form. When the user then submits the form, the json is in there.
It does, and I’m setting wait:true on the js side.
FYI, I tried removing blocking:true, and leaving wait:true. The result is that I get called with a GET request, with an assembly_url, and that sometimes the assembly hasn’t completed yet. I.e. when wait:true is on I am seeing wait:false behavior.