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">
|
_______________________________________________
help-cgicc mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cgicc