Flash upload problems (FileReferenceList, timeouts, #2038 )

Posted by binaryLV on Stack Overflow See other posts from Stack Overflow or by binaryLV
Published on 2010-06-14T11:07:13Z Indexed on 2010/06/14 11:12 UTC
Read the original article Hit count: 261

Filed under:
|
|

Hello!

I'm having problems with timeouts while trying to upload multiple files by using FileReferenceList.

upload() is being called in a loop for all selected files on Event.SELECT event of FileReferenceList, but only 2 files are being uploaded simultaneously (I also see 2 opened sockets that are used for uploading by running netstat -aon | find "127.0.0.1:80"). If uploading of any file is not started in 60 seconds, I get a #2038 error. E.g., if I try to upload three large files (like 500MB each), first two uploads are started immediately, third one is not started (because limit is 2 simultaneous uploads) and it fails after 60 seconds with #2038 error (I'm fairly sure that this is because of timeout - tested it).

This could be solved by calling upload() only when uploading previous file is completed, but I don't want to "hard-code" the number of possible simultaneous uploads (2 on my PC). Is there any way to get/set this number at runtime?

© Stack Overflow or respective owner

Related posts about flash

Related posts about upload