how to get the post response from the upload server..

hi,
i am trying to upload files to s3 and after all the workarounds posted on these forums, i am able to get it working. But, my application also needs the 'etag' parameter in the xml document returned by s3 ( as a post response). How do i get that document? Swfupload provides an interface where i can only see the status code returned by the server.

gyphie's picture

uploadSuccess & Server Data

The uploadSuccess event passes 2 parameters: file and serverData.

The serverData parameter contains all the text returned in the server response body (HTTP headers are not included).

uploadSuccess is only fired if the server returns an HTTP status code of 200.

Others have been working to get S3 working with SWFUpload. If you are able to get everything working and would like to contribute a tutorial we'd be grateful!

yes, we can set the

yes, we can set the success_action_status to 200 ( so that s3 returns this code). But for 200, s3 doesnt return any response body and hence the flash gets stuck. It returns the xml document only for status code 201 which swfupload considers an error.

How to go about it?

flash 9 changes.

Is there any place ( in the .as files ) where we can tell the flash to consider other codes to be success too?