Thread: Uploading file
View Single Post
  #2 (permalink)  
Old 06-04-2008, 03:42 PM
shiva6480 shiva6480 is offline
WMG Newcomer
 
Join Date: Jun 2008
Posts: 2
iTrader: (0)
shiva6480 is on a distinguished road
Thumbs up

Quote:
Originally Posted by technoguy View Post
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....
Reply With Quote
Sponsored Links
Register and sign in to hide this ad block