Uploading queue gets stuck after first file on OS X

Dec 7, 2008 at 10:54 PM

Great tool! I really appreciate you work!

Everything works fine in my app from XP machines with all A-Grade browsers (IE, Firefox, Chrome and even Safari).
On the Mac OS X though, uploading gets stuck after first file is uploaded, it just halts. Similar to this issue S3 progressbar stuck
I'm uploading to the local drive on the server, so no S3 issues there. If I monitor my network traffic, I can clearly see how it uploads the first file, then it just stops.

I'm guessing this is an issue related to flash<->js callbacks?

Issue is reproducible on your demo page too.

Any tips on where I can start debugging?

Thanks a lot again, and keep up the good work!

Dec 8, 2008 at 1:54 AM
What browser do you use on Mac?
Dec 8, 2008 at 7:45 AM
I'm so sorry for the lack of info in my first post. I hate it myself when i get bug reports with no info at all...

My config:
OS X 10.5.5
Safari 3.1.2
Firefox 3.0.4
Wekbit nightly

I've tried with both flash versions, 9 and 10 (this is from your detect page) MAC 10,0,12,36

I've tried debugging a lot last night, I just can't find anything wrong with the JS.

Tried the other Flash-based uploaders (fancyupload, swfupload), and their demo pages work fine...

Any ideas?

Dec 8, 2008 at 8:17 AM
You can make the following experiment:
1. Open in one tab
2. Open in another tab
http://flajaxian.com/ServerTracer.swf (by the way included in the source - flash folder)
then compare the traces with Win and Mac something must be different
Dec 8, 2008 at 8:57 AM
Hi again,

Thanks a lot for your fast replies!

These are my results with your debug instructions above.

First of all, multiple files works fine on your DebugFlajaxian.aspx page! Still no go in my app, or the flajaxian demo page.

From what I can see, onUploadComplete is not being called after the first file bytes have been transfered.

Here are the log files. First one is from my app: Debug #1
Second one is your FlajaxianDebug.aspx page with working queue: http://saturnus.mine.nu/dropbox/debug_flajaxianpage.txt

This is my init of Flajaxian:
 <script type="text/javascript">
                                function FileStateChanged(uploader, file, httpStatus, isLast){
                                    Flajaxian.fileStateChanged(uploader, file, httpStatus, isLast);
                                    if(file.state > Flajaxian.File_Uploading && isLast){
                                        alert('Alla bilder laddades upp utan problem.');

<fjx:FileUploader ID="FileUploader1" 
AllowedFileTypes="Web Images (Jpeg, Gif, Png):*.jpg;*.jpeg;*.png;*.gif"
CssClass="~/css/fileupload.css" runat="server">
            <fjx:FileSaverAdapter Runat="server" FolderName="~/~upload/productimages/" />

Again, thanks a bunch for your fast help, you've definitely deserved a postcard from Sweden ;)

Dec 8, 2008 at 11:42 AM
Edited Dec 8, 2008 at 2:58 PM
Hi again,

I've researched this a bit more, this is a bug with Flash not firing Event.COMPLETE on Mac.

Seems like SWFUpload is using DataEvent.UPLOAD_COMPLETE_DATA and queue uploading works just fine.
I have no Flash experience at all, and no developer environment either, but i've looked at your code and it seems to me it's only addEventHandler that needs to change.

Would you do it and compile a new swf, and I'll test it on Mac and XP?

Thanks again!

Dec 8, 2008 at 4:41 PM
I can change it by the end of today or tomorrow moring your time.

Thank you for the research!
Dec 8, 2008 at 9:56 PM
Can you test it with the latest code or binaries?
Dec 9, 2008 at 8:57 AM
Works like a charm!

Thank you so much for fixing this so fast, i'll be recommending your work whenever I can.

Also, please send me your snail mail address, I want to send you guys a postcard or something. Mail me thru CodePlex.

Again, huge thanks from me!

Dec 9, 2008 at 5:44 PM
Thanks Bobben,

You can find our address at http://www.flajaxian.com/flajaxian.com/aboutus.aspx