DougYoung has asked for the wisdom of the Perl Monks concerning the following question:
Any ideas what i am doing wrong?$filename = $query->param("Resume_File"); $filename =~ s/.*[\/\\](.*)/$1/; $upload_filehandle = $query->upload("Resume_File"); open UPLOADFILE, ">$upload_dir/$filename"; #while ( <$upload_filehandle> ) while ( <$filename> ) { print UPLOADFILE $_; } close UPLOADFILE;
Update
Solved this... I had missed the mixed multipart thing in the form tag. Working great now DY
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File Upload with CGI (Again)
by Corion (Patriarch) on Jun 01, 2015 at 14:03 UTC | |
|
Re: File Upload with CGI (Again)
by Anonymous Monk on Jun 01, 2015 at 13:53 UTC | |
by DougYoung (Initiate) on Jun 01, 2015 at 14:13 UTC | |
|
Re: File Upload with CGI (Again)
by trippledubs (Deacon) on Jun 01, 2015 at 16:04 UTC | |
|
Re: File Upload with CGI (Again)
by marinersk (Priest) on Jun 01, 2015 at 19:27 UTC |