Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
RE: Uploading a fileby PipTigger (Hermit) |
on Jun 08, 2000 at 16:47 UTC ( [id://17067]=note: print w/replies, xml ) | Need Help?? |
I just encountered this issue yesterday. The html which contains the form and the upload option must be defined like: <form enctype="multipart/form-data" method="post">You can include an input field within the form that has a type="file" which will allow the file to be uploaded to the CGI script. I struggled with the handling of it but the link above details how I finally werked it out. As chromatic noted, I don't use the object notation. I use :standard which causes my namespace to inherit everything from CGI.pm ... I like it that way but it's probably because I'm a rookie with objects. If you need any further direction, I'll be glad to post more of my code if you'd like. TTFN & Shalom.
-PipTigger p.s. Byslexia is a Ditch!
In Section
Seekers of Perl Wisdom
|
|