gube has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,

I enter the details in my html form and submit the form. I use param('name') to get the entered text. it's fine. I use <input type="file" name="file"> to get the file in html for attachment. But in cgi form i used param('file'). i am getting only the filename, i want full path and filename given in the html file. Please tell me any suggestion.

Replies are listed 'Best First'.
Re: How to retrieve text to cgi file?
by rupesh (Hermit) on Jun 06, 2005 at 05:02 UTC
Re: How to retrieve text to cgi file?
by brian_d_foy (Abbot) on Jun 06, 2005 at 05:34 UTC

    If you are using CGI.pm, you want the upload() function and its friends.

    --
    brian d foy <brian@stonehenge.com>
Re: How to retrieve text to cgi file?
by kprasanna_79 (Hermit) on Jun 06, 2005 at 08:27 UTC
    Hai gube...

    Check this link which gives u a complete idea abt the file upload

    Take care of the html line <form action="/cgi-bin/upload.cgi" enctype="multipart/form-data"> which is very inportant in ur html page.

    --Prasanna.K