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

In reply to Re: Create an upload Form by blue_cowdawg
in thread Create an upload Form by giobis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.