@michel - sorry for the late reply. In what browser exactly did it happen? In the next version of CKFinder we will provided an updated version of the editor. If you'd like to get earlier a development snapshot with that issue fixed, please send me a PM.
This issue is already be reported as internal issue.
Dear Wiktor,
I'm just implemented the new Ckfinder 2.1 but the problem still occurs. I tried it with IE8 , FF8 and Chrome 15. Do you need more information so you can solve this issue easier? I think is has something to do with the following code in com.ckfinder.connector.utils.FileUtils:
in = new FileInputStream(file);
byte[] buf = null;
if (file.length() < MAX_BUFFER_SIZE) {
buf = new byte[(int) file.length()];
} else {
buf = new byte[MAX_BUFFER_SIZE];
}
while (in.read(buf) >= 0) {
out.write(buf);
}
MAX_BUFFER_SIZE is set static to 1024 and the problem occurs when I have a document bigger than 1024 bytes
Please let me know if I can work together with you to improve the CKFINDER. Is there a SVN project where I can participate?
I think the while needs to be changed to:
int numRead;
while ( (numRead = in.read(buf) ) >= 0) {
out.write(buf, 0, numRead);
}
Re: Extra content added when download or edit
In the next version of CKFinder we will provided an updated version of the editor. If you'd like to get earlier a development snapshot with that issue fixed, please send me a PM.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Extra content added when download or edit
Dear Wiktor,
I'm just implemented the new Ckfinder 2.1 but the problem still occurs. I tried it with IE8 , FF8 and Chrome 15. Do you need more information so you can solve this issue easier? I think is has something to do with the following code in com.ckfinder.connector.utils.FileUtils:
in = new FileInputStream(file); byte[] buf = null; if (file.length() < MAX_BUFFER_SIZE) { buf = new byte[(int) file.length()]; } else { buf = new byte[MAX_BUFFER_SIZE]; } while (in.read(buf) >= 0) { out.write(buf); }MAX_BUFFER_SIZE is set static to 1024 and the problem occurs when I have a document bigger than 1024 bytes
Please let me know if I can work together with you to improve the CKFINDER. Is there a SVN project where I can participate?
I think the while needs to be changed to:
int numRead; while ( (numRead = in.read(buf) ) >= 0) { out.write(buf, 0, numRead); }