![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Uploading files using cgi.pmby c (Hermit) |
on Nov 29, 2001 at 19:25 UTC ( #128371=perlquestion: print w/replies, xml ) | Need Help?? |
c has asked for the wisdom of the Perl Monks concerning the following question:
I've read over a few posts concerning uploading files and I am looking at pp152-5 in Lincoln Stein's book on using cgi.pm. Right now, I am just toying around with uploading a file from the local hard drive to the server. All I am doing in my current script is is uploading the file and then trying to print its contents to the web browser window. However, instead of the file's contents, I am just getting the file's name.
This is just a snippet of my code. It seems to upload the file, however when a user selects C:\somefile.txt, the while statement just prints out this same path, minus the backslash. Based on Mr. Stein's code on p153 of his book with an example of how to print a file out to a local file on the server, I had thought the above snippet would work. Can someone please point me straight? humbly -c
Back to
Seekers of Perl Wisdom
|
|