I'm not sure if this is what you are looking for, but the session
cookies don't get sent by flex/flash when you upload a file. I had to
make a request before the file upload to get a unique upload id, store
it the database and return it to flex. Then when I acually send up the
file I tag it in the params of the upload.
I'm interested to know if anyone came up with a other workarounds for
the problem?
This sounds like a really strange problem. I am thinking a little out
of the box here, but this sounds like a classic clustering issue. One
server within the cluster has a different code set or is not working
correct. Hence you get this case of "it sometimes works and other
times it doesn't". Double check that all your mongrel, or whatever you
are running, have restarted properly and are running all the same
code.
I would highly doubt that this is problem with your flex code if you
can upload the file properly, even if it is really small. Double check
that file is not corrupt on the other end though. If you could replace
your flex code with something else that can handle the same sort file
transfer, that could isolate the problem.
The only other thing I could think of is a bug within the front end
server which is handling the file transfer.