Archived from the Transloadit support forum. Originally posted on June 14, 2011; details may be outdated, see our docs for current behavior. Original thread
I’m working on getting an uploader working using SWFUpload on the front end and transloadit as the destination. The initial upload goes through with a 302 redirect and I’m having trouble accessing the response body via swfupload. Have you seen any successful implementations on this that you can point me to?
After some spelunking in the SWFUpload code and research on ActionScript 3, it turns out that AS3 is unable to read response headers or bodies for when the response code is anything other than 200. I want to create a AJAX-style upload process (no full page redirects) using AS3. Does this mean it is impossible to use an AS3 flash uploader with transloadit?
Sorry for the late reply. It sounds really strange that AS3 does not expose full http semantics. But I think if you are not using a redirect_url, we will respond with a 200 OK code after the upload.
We could also add support for always sending a 200 response code, even if an error occurred. Let me know which solution you prefer / if you have found out more in the meantime.
Thanks, Felix. Removing the redirect_url param does indeed get a 200 and then I can get access to all the info I need to poll and create a seamless user experience.