in reply to Re: CGI-Upload / Bad File Number
in thread CGI-Upload / Bad File Number
If you using CGI, see CGI, in particular the section on Older ways to process uploads
The original way to process file uploads with CGI.pm was to use param(). The value it returns has a dual nature as both a file name and a lightweight filehandle.
You should find your working script will fail if you force $file into scalar by adding the line
if($file=~/[\w _\.\-\(\)\+]+\.jpg/i) { $file = ''.$file;
Does $src have some added processing that $file doesn't. ?
poj
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CGI-Upload / Bad File Number
by frnk (Novice) on Jul 16, 2016 at 18:42 UTC | |
by poj (Abbot) on Jul 16, 2016 at 19:53 UTC | |
by frnk (Novice) on Jul 17, 2016 at 05:40 UTC | |
by Anonymous Monk on Jul 17, 2016 at 01:55 UTC | |
by frnk (Novice) on Jul 17, 2016 at 05:59 UTC | |
by Anonymous Monk on Jul 17, 2016 at 08:26 UTC | |
by frnk (Novice) on Jul 17, 2016 at 12:29 UTC | |
|