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
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