I am facing following issue with uploadify script.
I am trying to upload a single file . When i run the script first time, it is showing browse button and file is uploading successfully with progress bar.
When i run the script second time, it is showing the two browse button. when i see the issue ,it is appending two objects with id "uploadifyUploader" .
so i removed object with id "uploadifyUploader" after completion of uploading. Now it is showing single browse buttons ,but is showing multiple progress bars and file is uploading multiple times.
this is my script. ---------------------- $('#uploadify').uploadify({ 'uploader': '/invox/ui/fileupload/uploadify.swf', 'script': url, 'cancelImg': '/invox/ui/fileupload/cancel.png', 'fileDesc':'You can upload .' + extension + ' files only', 'fileExt' :'*.' + extension, 'queueID' : 'fileQueue', 'auto' : true, 'multi' : false, 'onComplete': function(response,data) {
var id = '#uploadify'+data; $(id).remove(); $(".uploadifyQueueItem .cancel").unbind().bind("click",function(){ $('#uploadify').uploadifyCancel(data); $('#uploadify').uploadifyClearQueue();
});
} });
-------- html code: ----------
---------- i am unable to resolve this issue. Please help me , where i am doing wrong.