Re: how to upload file

robo <[email protected]> Tue, 29 Aug 2006 23:26:29 +0900
Newsgroups gmane.comp.gcc.cgicc.general
Message-ID <[email protected]>
--===============0703416288==
Content-Type: text/html; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-2022-JP"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Matthew<br>
<br>
Thank you for your help.<br>
I was able to do it.<br>
<br>
<br>
<br>
<br>
Matthew Nicholson wrote:
<blockquote cite="[email protected]" type="cite">
  <pre wrap="">Matthew Nicholson wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">robo wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Hi expert!

I have a question about how to upload file.
I want to upload file using method "getFile" from client to
web-server.but cannot upload file...
Can you please tell me how to upload file ?

I found out the following URL.
<a class="moz-txt-link-freetext" href="http://www.cgicc.org/doc/upload_8cpp-source.html">http://www.cgicc.org/doc/upload_8cpp-source.html</a>
But I wasn't able to upload file..
Does someone has a sample source code?

I am using the following version:
thttpd 2.25b
cgicc 3.2.3
      </pre>
    </blockquote>
    <pre wrap="">To upload the file your html page must have an input field of type "file".

&lt;form ... &gt;
   &lt;input type="file" name="my_file"/&gt;
&lt;/form&gt;

When you call the getFile("my_file") method you will get an iterator to
the file.  Your users will have to select the file to upload via the
html page.

    </pre>
  </blockquote>
  <pre wrap=""><!---->
That &lt;form&gt; tag should look something like this (from
<a class="moz-txt-link-freetext" href="http://www.cgicc.org/doc/classcgicc_1_1FormFile.html">http://www.cgicc.org/doc/classcgicc_1_1FormFile.html</a>):

 &lt;form method="post" action=<a class="moz-txt-link-rfc2396E" href="http://change_this_path/cgi-bin/upload.cgi">"http://change_this_path/cgi-bin/upload.cgi"</a>
   enctype="multipart/form-data"&gt;
  </pre>
</blockquote>
<br>
</body>
</html>



--===============0703416288==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
help-cgicc mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cgicc

--===============0703416288==--