[Perl-unix-users] Off the subject, Upload File CGI

2003-08-27 Thread Henry Wong, ¶À³Ç¼e
For some reason when I upload a file and save it on /tmp/test.jpg, it save it as a zero byte file. Does anyone have a suggestion how I can debug this? #!/usr/bin/perl use strict; use Image::Size; use CGI qw/:standard/; my $IS_MODPERL = $ENV{MOD_PERL}; *exit = $IS_MODPERL ? \&Apache::exit : sub

Re: [Perl-unix-users] Off the subject, Upload File CGI

2003-08-26 Thread $Bill Luebkert
Henry Wong, ¶À³Ç¼e wrote: > For some reason when I upload a file and save it on > /tmp/test.jpg, it save it as a zero byte file. Does > anyone have a suggestion how I can debug this? Try the version on my Tripod site. If you want to try to debug this one, see below and add some print statements