in reply to File Upload CGI Form on Windows problem

It uses binmode on the input (good), but not on the output (bad). Try changing
open(TMP, ">$files_path/$tm-$i.$type") || error(...); print TMP "$fl"; close TMP;
to
open(TMP, ">$files_path/$tm-$i.$type") || error(...); binmode(TMP); print TMP "$fl"; close TMP;

Replies are listed 'Best First'.
Re^2: File Upload CGI Form on Windows problem
by Anonymous Monk on Nov 17, 2005 at 21:36 UTC
    Thank you all for taking the time to look at this... ikegami, I added the line you suggested and that fixed the problem.