hm ok..
but thats not new to me.. the code i show you is only part of an package. the cgi object lies in the main. for that itīs not a scoping issue.
my $filename = $q->param('upload_file');
gives exactly the filename of the uploaded file. but not full qualified. here you are right:
$CGI::DISABLE_UPLOADS
$main::q is initialised in the main with our $q = new cgi;
but the attribute should set like use CGI qw/:standard/;
use CGI::Carp 'fatalsToBrowser';
$CGI::POST_MAX=1024 * 100; # max 100K posts
$CGI::DISABLE_UPLOADS = 1; # no uploads
thanks for the pointer.
like Eliya said:
my $filename = $q->param('upload_file'); # returns (client-side)
+name of the file
my $filehandle = $q->upload('upload_file'); # returns handle to the
+server-side temp file
thats still my code. but the filehandle is empty. thats what i want to fix. i want to know what this function do:$q->upload('upload_file'); because it might be that there is a problem with fetching the data from the client..?!
sorry 4 my worse diction..
$perlig =~ s/pec/cep/g if 'errors expected';
|