Quote:
Originally Posted by technoguy
How can I upload file using perl? I want to upload it to the folder images and want to rename it whie uploading. Anyone have any idea about it? I have made form using dreamweaver by using input type = file and submit button.
Thanks
|
Hi,
You can upload file using perl's CGI module. there are two functions available in CGI module, those are param('name') and upload('name') which will take input name in the form as argument and returns file name which you selected to upload. this is used as a filehandle and you can open that file, read the content and write into the server side file. that's all....