Uploaded binary files are corrupted
Posted: Wed Feb 03, 2010 1:25 pm
B.H.
Hello!
I'm working on integration of your component in our backoffice system. We want to use it for uploading large files (like video/mp3 etc) using FTP.
Everything works cool, but there's a problem - binary files get corrupted. I use windows based client and linux server, so it looks like the problem is that the files are uploaded in text mode.
But i couldn't find any config parameters that i can set so all files are uploaded in binary mode. Is there any option to do so?
I mean, is there any option to force jfileupload to upload by FTP in binary mode only?
(Just performed another test to figure out the source of the problem - when i upload .sql file already encoded with unix-style line endings it arrives OK, and diff says it's identical to the source)
Hello!
I'm working on integration of your component in our backoffice system. We want to use it for uploading large files (like video/mp3 etc) using FTP.
Everything works cool, but there's a problem - binary files get corrupted. I use windows based client and linux server, so it looks like the problem is that the files are uploaded in text mode.
But i couldn't find any config parameters that i can set so all files are uploaded in binary mode. Is there any option to do so?
I mean, is there any option to force jfileupload to upload by FTP in binary mode only?
(Just performed another test to figure out the source of the problem - when i upload .sql file already encoded with unix-style line endings it arrives OK, and diff says it's identical to the source)