in reply to Image::Thumbnail work under windows but not on linux
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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Image::Thumbnail work under windows but not on linux
by *alexandre* (Scribe) on Aug 13, 2019 at 13:53 UTC | |
by Corion (Patriarch) on Aug 13, 2019 at 14:18 UTC | |
by *alexandre* (Scribe) on Aug 14, 2019 at 11:24 UTC | |
by Corion (Patriarch) on Aug 14, 2019 at 11:29 UTC | |
by *alexandre* (Scribe) on Aug 14, 2019 at 11:52 UTC |