in reply to Re^3: CGI-Upload / Bad File Number
in thread CGI-Upload / Bad File Number

I would remove the eval , like this

my $query = new CGI; my $file1 = $query->param('file1'); if ($query->param('FNC') eq "Hochladen") { if ($file1 ne "") { Upload("$DIR$FILE/_file1", $file1); } }

If would help to see the complete cgi script as I suspect some other improvements could be suggested.

poj

Replies are listed 'Best First'.
Re^5: CGI-Upload / Bad File Number
by frnk (Novice) on Jul 17, 2016 at 05:40 UTC

    You got it!! - Thanks a lot!

    ...obviously sometimes i have to read more about how upload works. I always wondered in a small part of my head about how the filename-string can specifie the hole upload-connection, but if this filename-string is not a 'pure' string containing a handle in the background, this point gets clearer...

    Regards, Frank