Falazar has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl print "Content-type:text/html\n\n"; use CGI qw(:standard); print "<form method='POST' enctype='multipart/form-data' action=upload.cgi> File to upload: <input type=file name=upfile><br> Notes about the file: <input type=text name=note><br><br> <input type=submit value=Press> to upload the file! </form> <bR><Br><br> <a href=test.jpg target=_blank>Link to the file</a><br> Actual file uploaded: <img src=../test.jpg><br>"; # Save Picture File if updated or new $file_name = param(upfile); if ($file_name ne "") { open(OUTF,">test.jpg") or &dienice("Couldn't open pic for writing. Please notify webmaster Falazar."); while(read($file_name,$data,1024)) { print OUTF $data; } close(OUTF); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need upload Help for win 2000
by Hero Zzyzzx (Curate) on Apr 10, 2001 at 23:22 UTC | |
by ryanus (Sexton) on Jun 24, 2002 at 15:56 UTC | |
|
Re: Need upload Help for win 2000
by Asim (Hermit) on Apr 10, 2001 at 23:15 UTC | |
|
Re: Need upload Help for win 2000
by little (Curate) on Apr 10, 2001 at 23:22 UTC | |
|
Re: Need upload Help for win 2000
by JohnB (Scribe) on Apr 11, 2001 at 19:11 UTC |