Hi, it's me again. Your friendly neighbourhood voodoo doll. I'm having problems trying to write an upload script. I understand everything except the uploading of the files itself. here is a basic Psuedocode of the CGI document i want to run off of.
Start of the Form Checkboxes for $Color and $Pattern and $Installation Radio buttons for $Type 2 upload boxes one for $thumbnail and one for $screenres Restrictions on $thumbnail upload. ->must be under 50k, ->must end in td.jpg, ->must match the file name of $screenres once you take off tn.jpg Restrictions on $screenres upload. ->must be under 500k ->must end in sr.jpg, ->must match the file name of $thumbnail once you take off sc.jpg $thumbnail goes to the folder '/images/thumbnails/' $screenres goes to the folder '/images/screenres/' $name = $thumbnail minus tn.jpg or $screenres minus sc.jpg finnally a line is appended to the end of the db file '/cgi/scfrom.db' '$name|$color|$pattern $installation|$type|$thumbnail|$screenres|#Chec +k Needed Here#' pending that the two files match and exist, the script then completes +it's task once the form is submitted
I can do everything there, except i am too confused/frustrated/new to understand how to upload the files. Please Help.
----------------------------
Wiz, The VooDoo Doll
Head Master of 12:30 Productions
----------------------------

Edit Masem 2001-08-22 - Edited title from "Frustrated Headaches with Uploading Pictures"


In reply to Uploading images with CGI.pm by wiz

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.