FileState changes to 3 before file is uploaded

Aug 12, 2009 at 6:28 PM

The application is on a live server.

when i chose a file to upload and click the upload button function below rises with filestate = 2 and right after that (less then second later) it fires 2nd time with filestate=3. But the file is still uploaded.

my function:


function FileStateChanged(uploader, file, httpStatus, isLast)
        Flajaxian.fileStateChanged(uploader, file, httpStatus, isLast);
        if (file.state > Flajaxian.File_Uploading && isLast)
            setTimeout("window.location.reload(true)", 2000);
        if (file.state == Flajaxian.File_Uploading)
            var sf = document.getElementById('Panel1');
            if ( == "none")

One one important thing: I tried to do the same from another place (different ISP) and it works.

Does anyone faced with something similar?


Aug 15, 2009 at 6:05 PM

I dont know whether it's relevant ot not but...

on my home computer (where i have file upload problem) i got this header in fiddler

#    Result    Protocol    Host    URL    Body    Caching    Content-Type    Process    Comments    Custom    
0     -     HTTP    /Default.aspx?__ID=ctl00_ContentPlaceHolder2_FileUploader1&__AspCookie.Session=xxdpwmz45h4e3w55sbsysqjq&__AspCookie.Auth=7DCB3C5D3B003CDAD7F7F2E30D8197AFA9C4517A01C9AC7E7FF9C97C3E039049E0F360F98A862F4AB7E537C1BD5BA8CBDE2907B50A7DD0B8C419E45A29062427&&__index=0&__isLast=true    -1            avp:1576         


and i haven't got this header on my office computer where all work fine.

Sep 7, 2009 at 7:04 PM
Edited Sep 12, 2009 at 8:50 AM

Dear developers, it's obviously there's some bug in the code, please help me to figure out where exactly and get rid of it. I have reinstalled the windows on my home pc but the issue still remains.

Maybe it somehow depends on regional & language settings (e.g. decimal separator).

I set up breakpoint in firebug on the line with the following function "function ctl00_ContentPlaceHolder2_FileUploader1_SetUploadProgress(evt)" and click upload button. When programm stops, I c

lick F10 one time and upload progress become 99%. (file is not fully uploaded at this time). But when i do the same on a different computer i see predictable situation: while i'm clicking f10, progress is smoothly increasing from 0 to 100%


Sep 12, 2009 at 9:03 AM
Edited Sep 18, 2009 at 12:26 PM

I've found what causes this issue. Kaspersky antivirus. Disabling it - solves the issue. Is there any way to get round it?