File dropdown gets stucked after first upload

Jan 31, 2009 at 10:08 AM
I'm using this control inside an update panel and after the first upload the dropdownlist remains visible keeping the progress bar at 99.0%. The files are uploaded but this breaks the UI. Any ideas?

Ps: this is a very good control both in simplicity and architecture.

Jan 31, 2009 at 10:24 AM
Problem solved. On FileStateChanged function I was clearing the hidden field that was storing the upload file names.

function FileStateChanged(uploader, file, httpStatus, isLast) {
            var hfImages = Flajaxian.$("<%= hfImages.ClientID  %>");
            var files;
            Flajaxian.fileStateChanged(uploader, file, httpStatus, isLast);
            if (file.state > Flajaxian.File_Uploading) {
                hfImages.Value += (hfImages.Value == "") ? string.Empty : "|";
                hfImages.Value +=;

                files = hfImages.Value;

                if (isLast) {
                    //hfImages.Value = "";
                    __doPostBack('ctl00$ContentPlaceHolder1$lnkImagesDummy', files)

I'm using this approach because I have another update panel with a dropdownlist that show the upload files when the lnkImagesDummy click event occurs.