workaround failed to load when upload is not triggered directly by user interaction

the fix is pulled from here:
https://code.google.com/p/in-spirit/source/detail?r=118&path=/trunk/projects/MultipartURLLoader/ru/inspirit/net/MultipartURLLoader.as