Oops, it looks like multipart is a little broken :)
setFormData is for doing name1=value1&name2=value2 as the content.
Multipart sets the content using parts separated by a boundary. You
can't really use them together. The API is definitely a little
confusing in the area. I added so it throws an exception until the API
is clearer.
But I just committed some work to the multipart stuff. Can you try
this?
var multipart:Multipart = new Multipart([
new Part("name1", "value1"),
new Part("name2", "value2"),
new FilePart(file, "application/octet-stream")
]);
httpClient.postMultipart(new URI(END_POINT), multipart);
I started a test for multipart post (see test/s3/S3PostTest) and I
don't have it completely working but I plan to try to get it working
in the next week (hopefully tomorrow).