JimJx has asked for the wisdom of the Perl Monks concerning the following question:
The code I am using for the script:print "<FORM METHOD=\"post\" ENCTYPE=\"multipart/form-data\">\n"; print "<INPUT TYPE=\"FILE\" SIZE=\"25\" NAME=\"UPLOAD\">\n"; print "<input type=\"hidden\" name=\"login\" value=\"$login\">\n"; print "<input type=\"hidden\" name=\"password\" value=\"$password\">\n +"; print "<input type=\"submit\" value=\" Send File \">\n"; print "</FORM>\n";
$dir = '/Full/path/to/ul/dir'; $filename = $input{'UPLOAD'}; $filename =~ s/.*[\/\\](.*)/$1/; $fileUp = $dir.$filename; my $upload_filehandle = "$filename"; open UPLOADFILE, ">$dir/$filename"; binmode UPLOADFILE; while ( <$upload_filehandle> ) { print UPLOADFILE; } close UPLOADFILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Upload form
by zentara (Cardinal) on Feb 18, 2007 at 17:43 UTC | |
by JimJx (Beadle) on Feb 18, 2007 at 18:04 UTC | |
by Joost (Canon) on Feb 18, 2007 at 19:17 UTC | |
by zentara (Cardinal) on Feb 19, 2007 at 13:51 UTC | |
by JimJx (Beadle) on Feb 19, 2007 at 19:18 UTC | |
|
Re: Upload form
by Joost (Canon) on Feb 18, 2007 at 17:42 UTC | |
|
(security thing) was Re: Upload form
by chromatic (Archbishop) on Feb 18, 2007 at 21:44 UTC | |
|
Re: Upload form
by shmem (Chancellor) on Feb 18, 2007 at 21:28 UTC |