in reply to Uploading via HTML/Using CGI.pm
Make sure you use strict;, but you may have a problem with Perl claiming your file name is a symbolic reference and refusing to open it. If you need a hard reference, you can do the following:<FORM ACTION="/path/somescript.cgi" METHOD="POST" ENCTYPE="multipart/f +orm-data">
$fh is now supposed to be the filehandle for your file. This requires CGI.pm version 2.47 or above. However, I have had a lot of difficulty getting that to work.my $file = $q->param( 'file' ) or someErrorRoutine( $q, "No file recei +ved" ); my $fh = $q->upload( $file );
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just go the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: (Ovid) Re: Uploading via HTML/Using CGI.pm
by merlyn (Sage) on Oct 17, 2000 at 18:56 UTC |