Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The script is mainly targeted at Windows users, so the sort of paths I'm getting are similar to C:\Documents and Settings\Administrator\My Documents\somedocument.doc. The trouble is, after they click the submit button, the path I'm getting is only whatever is after the last backslash in the path. In the example I just gave, the 'file' parameter I get is somedocument.doc.print $cgi->header; print $cgi->start_html(-title=>'Upload New File'); print <<EOP; <p align=center><h2>Use the form below to upload a new file</h2></ +p> <hr> <form enctype="multipart/form-data" method=post> <p align=center><input type=file name="file" size=50></p> <p align=center><input type=submit value=Upload></p> EOP
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File Upload Problem
by Snuggle (Friar) on Jul 02, 2002 at 15:34 UTC |