FileReference upload II
November 13th, 2008 • ActionScript, Flash
A few weeks ago I posted about some issues with the FileReference Events in combination with Anti-Virus Tools. Apparently there is another problem even without using such tools. If your upload bandwidth is very low, lets say less than 100 kbit/s or even worse if you are using a good old modem (56kbit/s) to connect to the internet, you might get into trouble handling the IOErrorEvent.IO_ERROR Event. You will get #2038 FIleIOErrors during an upload process on slow connections even though your upload is fine and the file is hitting the server correctly. Actually there is a correlation between the connection speed an the file size.
The bigger the files (>500KB) and the slower the connection the more often you’ll get an IOError.
I think even in AS3 times it’s sometimes better to reclaim good old AS1/AS2 times where error handling didn’t play a major role and just don’t listen to every error event that could occur.
This is only because of bad documentation or … they didn’t thought on that … kind of issues. I myself am really afraid of using air with flex because there is no freaking way to prevent the “script execution is taking more than xxx seconds” that i happen to get because of the same problems, uploading a normal 5 mb video to a server using flex(flash) takes more than maximum script execution time under low up/down bandwidth … What am i supposed to do, buy my customers new internet subscriptions …
I guess everyone at adobe has fiber optic links and they only visit themselves… pretty darn basic s**t they did not think at.