in reply to Create an upload Form

This is one of those areas that some understanding of the principles is exceedingly important before you step off due to the inherent dangers in what you are trying. Sort of like making sure you understand how a parachute works before going skydiving.

There are two crucial elements that you need to understand. First off is how to write the form in the first place. You can approach that from two directions. Purely an HTML coded page to wit I'd recommend you look at some of the on line resources pointed to by this CPAN search.

Another approach to creating this form can be learned by reading the documentation that comes with the CGI module. Please note the same script that processes the file upload can generate the form. An all in one solution!

There are numerous tutorials on CGI programming itself both here at the Monastery including this one and this offsite link.

Next you need to understand the security ramifications of what you are doing and be ready to deal with them. File uploads in my experience are one of the more popular things people want to implement and sadly the folks that want to implement them often don't understand the dangers.

I hope this nudges you in the right direction, I know I haven't "spoon fed" you a solution. I restrained myself from doing so intentionally since I want you to fully consider and understand what you are doing before you try and do it and fall into some sort of grief.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg