11
Oct
2009

ByteArray upload – Error #2176 Solved !

as some of you may know one of flash player 10 updates “fixed a security hole” that allowed sending
URLLoader in the oncomplete of the last request.
now every URLLoader load function must be triggered with a mouse click – initiated by the user..

that fix broke some file uploaders (like Jonathan Marston nirvanix bytearray uploader) (and some other pieces of code) creating an exception on the second request.

now – i was looking for a solution that will allow me sending multiple – client side – reencoded images to the server, still showing some progress bar (as i can’t use the filereference.upload method).

after hours of playing with the 2176 Error, i decided to take another approch,
and welp – what do you know – it’s possible doing it with the Zend Amf framework for php, using flash’s Netconnection Object to send byteArray (’s) to the server !

I’ll upload an example soon – and i’ll connect it to the multiple file upload component i have here on the site , so it will show upload progress for each file ! (plus might add mp3 uploading as well)

Anyway – solution coming soon !

http://www.adylevy.com/wp-content/plugins/sociofluid/images/digg_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/stumbleupon_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/delicious_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/furl_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/technorati_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/google_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/myspace_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/facebook_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/yahoobuzz_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/twitter_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/meneame_32.png