In AIR application, I am uploading two files simultaneously using FileReference.upload(). It works perfectly fine on all operating systems in most of the cases but in some cases doesn't work e.g when auto detect proxy option is checked on Mac OS. Although for FileReference API, it is documented that you must upload files one by one but it works really fine in most of the cases.
In debug proxy, it shows same request on both connections and one connection is in wait state. Did anyone encountered this situation? and know whats the root cause of this error? As a workaround, I tried determining upload mode (simultaneous/sequential) using two dummy files, but it is really random. sometimes two files are uploaded successfully and in some cases IO error is thrown after a long time.