Does swfupload fire success handlers for http status codes other than those specified in http_success config option?

44 views
Skip to first unread message

Arindam Chakraborty

unread,
Mar 5, 2012, 9:45:47 AM3/5/12
to SWFUpload, jebasingh...@gmail.com
I am running into issues with upload_success_handler being fired even
if the status code from the server does not match the status code
specified in the config option 'http_success'. Is that expected
behavior?

SwfUpload does seem to be calling the upload_error_handler for 4xx
style responses.

I tried digging to see if I could use the second parameter, 'server
data' in the uploadSuccess handler (http://demo.swfupload.org/
Documentation/#uploadSuccess) but I would really like to avoid parsing
that string to figure out the actual status code and then fire an
error.

The provider I am uploading to sometimes fires 2xx style responses for
error as well and I need to consider all 2xx responses other than a
particular one as failures.
Reply all
Reply to author
Forward
0 new messages