help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-cgicc] how to upload file


From: robo
Subject: Re: [help-cgicc] how to upload file
Date: Tue, 29 Aug 2006 23:26:29 +0900
User-agent: Thunderbird 1.5.0.2 (Macintosh/20060308)

Hi Matthew

Thank you for your help.
I was able to do it.




Matthew Nicholson wrote:
Matthew Nicholson wrote:
  
robo wrote:
    
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.
http://www.cgicc.org/doc/upload_8cpp-source.html
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
      
To upload the file your html page must have an input field of type "file".

<form ... >
   <input type="file" name="my_file"/>
</form>

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.

    

That <form> tag should look something like this (from
http://www.cgicc.org/doc/classcgicc_1_1FormFile.html):

 <form method="post" action="" class="moz-txt-link-rfc2396E" href="http://change_this_path/cgi-bin/upload.cgi">"http://change_this_path/cgi-bin/upload.cgi"
   enctype="multipart/form-data">
  


reply via email to

[Prev in Thread] Current Thread [Next in Thread]