![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Uploading files: can't find contents?by ezekiel (Pilgrim) |
on Apr 04, 2003 at 00:39 UTC ( #247937=perlquestion: print w/replies, xml ) | Need Help?? |
ezekiel has asked for the wisdom of the Perl Monks concerning the following question: Hello all I have a CGI script where a user indicates the location of an XML file on the file system through a form. On submission, the script should upload the file and store it in a database. At present, it seems to get all the correct information from the form but doesn't get the contents of the file. Here is what I have so far: The relevant HTML form:
The part of the code to get the file:
At a guess it is because the $filename does not contain the full path to the file? However, I've seen the same code work in another program as is (I just cut'n'pasted it!). Furthermore, if I do need the full path, how do I get it from the HTML form? Thanks.
Back to
Seekers of Perl Wisdom
|
|