Hi,
I'm getting an error message in Firefox, (ie errors but no message) when I'm uploading documents.
The following error message pops up and the page doesn't refresh to show the file.
In IE, I get no message, and if I wait a while and click refresh the file is there.
I'm getting an error message in Firefox, (ie errors but no message) when I'm uploading documents.
The following error message pops up and the page doesn't refresh to show the file.
Error: <script type="text/javascript">window.parent.OnUploadCompleted(0,'filename.pdf') ;</script>
In IE, I get no message, and if I wait a while and click refresh the file is there.
Re: ckfinder 1.4.2 on upload error
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: ckfinder 1.4.2 on upload error
Re: ckfinder 1.4.2 on upload error
I replaced the function bv(A, B) with
The error reported is: TypeError - Object doesn't support this property or method.
The refresh on the catch works, but the file isn't selected (no biggie) but I have to close ckfinder and reopen in order to upload again... Anyway around that?
Re: ckfinder 1.4.2 on upload error
Some more debug info:
With function:
Re: ckfinder 1.4.2 on upload error
Using latest versions of: CKFinder, CKEditor, Firefox, IE8.
Tested on my local computer: Windows 7, Visual Studio 2008 and production server Windows Server 2003 with all updates installed to date.
Screen shot attached.
Attachments:
Re: ckfinder 1.4.2 & 1.4.3 on upload error
Re: ckfinder 1.4.2 & 1.4.3 on upload error
possible solution that's works (not good) on ie8
in ckfinder_ie.js replace var C=A.replace(/^.*[\/\\]/g,''); width C=B.replace(/^.*[\/\\]/g,'');
i don't like this.
also i have posted the screen shot errors
the results is similar not thumbsnail previes's updates
Attachments:
Re: ckfinder 1.4.2 & 1.4.3 on upload error
here a possible bug fix for ie8 e ffox 3.6 (fckfinder for aspx page asp.net 2.0 iis 7/7.5)
in fckfinder_ie. js replace bv function width
function bv(A,B){
var C=B.replace(/^.*[\/\\]/g,'');
/*if (U.dF&&A){*/
ag.bK();d.Refresh(C);
/*};*/
var D=d.aa.document;
if (U.gu){
setTimeout(function(){D.getElementById('cY').innerHTML=ag.gT;},0);
}
else D.getElementById('cY').innerHTML=ag.gT;
D.getElementById('ei').style.visibility='hidden';
D.getElementById('fx').disabled=false;
if (!U.dF&&A){
ag.bK();
d.Refresh(C);
};
if (B) be.ea(B);
}
-----------------------------------------------------------------------------------------------------------------------
on fckfinder_gecko.js replace bv function width
function bv(A,B){
var C=B.replace(/^.*[\/\\]/g,'');
/*if (U.dF&&A){*/
ag.bK();
d.Refresh(C);
/*};*/
var D=d.aa.document;
if (U.gu){setTimeout(function(){D.getElementById('cY').innerHTML=ag.gT;},0);}
else D.getElementById('cY').innerHTML=ag.gT;
D.getElementById('ei').style.visibility='hidden';
D.getElementById('fx').disabled=false;
if (!U.dF&&A){
ag.bK();d.Refresh(C);
};
if (B) be.ea(B);
}
in ckfinder_gecko.js i have modified this handler C.addEventListener('load'§
C.addEventListener('load',function(evt) {
var r=/<script.*>file upload correctly*<\/script>/;
var G=evt.target.responseText;var H=G.match(r);
if (!H){
d.aa.OnUploadCompleted('','Success: file uploaded Correctly;');
return; };
d.aa.OnUploadCompleted(H[1],H[2]);},false);
------------------------------------------------------------------------------------------------------------------------------
it's not the best but it works.
it's the same for both browser
see you soons
i'm waiting post about this solution (Would you like this bug fix ??????)
Re: ckfinder 1.4.2 & 1.4.3 on upload error
That's pretty good. Just need some response from the cksource devs now to finally fix this issue for good.