You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Scott Chapman <sc...@mischko.com> on 2001/04/24 05:13:59 UTC

File upload corruption with embperl upload example

I'm using Randy Kobes' precompiled Apache distribution containing 
the following:

Embperl 1.3b3/Windows NT 4.0/Apache 1.3.12/ModPerl 1.23/Perl  
5.6.0

When I use the Embperl upload example, files are getting somehow 
corrupted. The file size is not the same as the original and the file is 
not usable.

Has anyone else experienced this and found an answer for it?

Thanks!
Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: File upload corruption with embperl upload example

Posted by Gerald Richter <ri...@ecos.de>.

> I'm using Randy Kobes' precompiled Apache distribution containing
> the following:
>
> Embperl 1.3b3/Windows NT 4.0/Apache 1.3.12/ModPerl 1.23/Perl
> 5.6.0
>
> When I use the Embperl upload example, files are getting somehow
> corrupted. The file size is not the same as the original and the file is
> not usable.
>

Have you turned on binmode when you write the file? Otherwise Perl will
translate LF to CRLF

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org