Is CGI necessary to reproduce the problem? Can you remove the module and CGI functionality while still getting the error? Maybe consider running the CGI script from the command line instead?
open(LOCAL, ">$imgdir/$name") or print 'error';
Consider outputting the error text to the web server error log instead:
my $filename = open(LOCAL, ">$filename") or die "Could't create '$filename': $!";
Also consider using the approach documented in CGI for file uploads:
use File::Copy 'copy'; my $filehandle = $q->upload( 'uploaded_file' ); my $tmpfilename = $q->tmpFileName( $filehandle ); cp $tmpfilename => $filename;
In reply to Re: Image::Thumbnail work under windows but not on linux
by Corion
in thread Image::Thumbnail work under windows but not on linux
by *alexandre*
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |