The problem is there is no output I can give, the page just refreshes itself, even in the logs files there is nothing to hold on, however now when I submit the form, the page hangs until I kill it. I don’t know what I did to the server!
The multipart_form stops the page with no output to operate on, but Im still trying to find something for you.
Running CGI script in Command line? I haven’t done it before, I’ll try
Also I tried the “application/x-www-form-urlencoded” which is the older version, but no luck
Ok the page is about 700 line of code, so I’ll show you the important bits:
And tell me of it’s not enough, I will send it all.

#--check of the form is submitted
if ($ENV{'REQUEST_METHOD'} eq "POST") {
#----set the limited size of the file(s) to be uploaded, the max file(s) size is 300 KB
our $limit = 300000;
#---retrieve the file(s) size from the client side:
our $content_length = defined $ENV{'CONTENT_LENGTH'} ? $ENV{'CONTENT_LENGTH'} : 0;
#--do some validation stuff if if if and store some data into the database à
}

#---start the form:

print $query->start_multipart_form(-method=>'post', -action=>'http://localhost/cgi-bin/cars/add_car.pl' );
#--car name fieldà
#--car model, color bla blaà
#--car picture:
print $query->filefield(-name=>'uploaded_file', -size=>70, -maxlength=>140), '
';
print p(reset, submit('submit', 'Submit'));
print $query->end_ multipart_form;


Thanks for your support dud.
I really need it.

In reply to Re: CGI multipart_form not working by wolf25
in thread CGI multipart_form not working by wolf25

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.