XML POST / Upload, Flash uploaders and all that

Hello everybody,

I'm having some trouble with my latest endeavor : POSTing a XML File to
my Rails App. I use a flash Uploader, namely FancyUpload v2.0 (v3.0
stopped working for me for very random reasons) to POST the data to
Rails. Here's the response I get :

Processing MyController#upload_xml (for 127.0.0.1 at 2009-06-27
02:22:22) [POST]
  Session ID: ed3cea2a21aca4e3b293e6fd2cb1b6ed
  Parameters: {"Filename"=>"instance.xml", "Upload"=>"Submit Query",
"Filedata"=>#<ActionController::UploadedStringIO:0x6489e7c>}
Completed in 2ms (View: 0, DB: 1) | 406 Not Acceptable
[http://www.tester.eu/uploadXML].

I connected the route as such :
map.connect 'uploadXML', :controller => "My", :action => "upload_xml"

It seems that it's rejecting the file from the get-go, I've checked out
http://code.google.com/p/activeupload/issues/detail?id=2 and it seems to
have something to do with the HTTP Headers, -Accept and all that jazz.

I tried using Live HTTP Headers, the request isn't sent there, no luck.
Also tried Wireshark but it kept capturing LAN noise and no browser
requests whatsoever.

There's something wrong with the MIME Types from the request, while
doing picture upload (this works) using the same JS/Flash etc. solution,
everything is ok except the MIME Type, gets application/octet-stream all
the time. I worked something out in the past to make it look for the
MIME type off of the extension but that doesn't seem the case here.

I must say that I'm running Apache as a proxy in front of Mongrel (to
test HTTPS), currently in development mode - could that also be a cause
?

I'm stumped trying to figure it out for the past 2 hours now, I'm gonna
try and switch to the newer FancyUpload v3.0, perhaps my luck has
changed and it's working for me again. Or another Flash upload solution,
who knows.

Anxiously awaiting any replies, can provide more details if needed, of
course.

Thank you in advance !

Scratch that, it was actually getting to the controller, just didn't see
it in the console, gosh. So all swell, just remembered that 406 would be
thrown even if the upload worked (with pictures and all). Darn tired
eyes ! :slight_smile: Thank you anyway !