You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by John Reid <jr...@openconnect.co.uk> on 2000/11/24 13:28:36 UTC

libapreq and file upload

Hi All

I am helping someone debug an application in using mod_perl on Win32. Our
page parser handler handles fileuploads automatically using the
Apache::Upload object. The person in question is uploading word documents
and they are being corrupted in transit. It looks like CRLF substitution. We
have tried all the usual binmode stuff but with no success. Can anyone shed
some light?

John Reid
OpenConnect (Ireland) Ltd
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.215 / Virus Database: 101 - Release Date: 16/11/2000


Re: libapreq and file upload

Posted by Joe Schaefer <jo...@sunstarsys.com>.
"John Reid" <jr...@openconnect.co.uk> writes:

> Hi All
> 
> I am helping someone debug an application in using mod_perl on Win32. Our
> page parser handler handles fileuploads automatically using the
> Apache::Upload object. The person in question is uploading word documents
> and they are being corrupted in transit. It looks like CRLF substitution. We
> have tried all the usual binmode stuff but with no success. Can anyone shed
> some light?

Are you using a patched libapreq, or is it "stock"?  Did you do a tcpdump
on the connection to compare the transmitted file against the contents
of your Apache::Upload object? I don't think CRLF translation should be 
occuring within libapreq, but then again I don't run apache on windows
either :)

Please contact me at the email below if you're having problems with the
patch I submitted.

HTH
-- 
Joe Schaefer
joe@sunstarsys.com