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

5 comments »

  1. Vadim said,
    October 13, 2009 @ 10:44 pm

    Hi Ady,
    Great news, I will be happy to test a new version.
    And as in my previous comment – some feature requests from me.
    1. Resized dimensions specified in JavaScript (I’ve already mentioned it).
    2. Possibility to hide uploaded files listing. Just a flag in JavaScript configuration to hide an uploaded files panel. I think that some will want to implement picture browsing by themselves.
    3. You wrote about mp3 upload – you can just allow to upload all the files, but if it is an image then resize it.

    I hope that you will find my proposals useful and implement them sometime.

    All the best and waiting for the new release,
    Vadim

  2. Albert said,
    October 17, 2009 @ 3:05 pm

    Hello Ady!

    Thank’s for your great jobs, I’d like it very much but I’d like some options more if it is posible, I can pay for this if the price is reasonable.
    I don’t have knowlage with flash, and I don’t know how to do it:
    1. Show more than 3 “stripSelected” to screen. I don’t know how to do more big, show for example 7 “stripSelected”. It shows 3, and then to appear the scrollbar.
    2. Is posible to show te browser with the opcion “miniature view” (I don’t know how say in english I have spanish windows) enable for default. I think for the user is more easy to select the image if he can see it before. I know than user can select manual this opcion but there are user I don’t know this opcion.
    3. I’d like to can limit the picture numbers to upload. For example I can send by php the number picture than It can upload. For example if I send number 6, when the user select 6 picture the button browser is disabled. This opcion is the more important for me.

    I’ve attached to image with the opcion 1 and 2:
    http://geriatrics.brinkster.net/images/imgupload.jpg

    Sorry for my large post, I can pay for this, and I undertand you are busy and you don’t have any obligation to do it. If not posible, no problem.

    Thank’s

  3. admin said,
    October 21, 2009 @ 4:48 pm

    @albert – i’ll add it to my todo list,
    except item #2 – its impossible …

  4. Albert said,
    October 22, 2009 @ 12:00 am

    Thanks, I’ll be alert of your updates.

  5. chuck said,
    January 22, 2010 @ 11:56 pm

    Just wondering I tried using the multi upload source. But I don’t get a down load preview or anything below
    the upload screen. In the demo you have tabs that have a preview and a remove button. Thanks

Leave a Comment