🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1010

CGI how to write program for accepting file uploaded to server

#1010
From: zhangsn
Date: Sat, 22 Oct 2005 11:30
14 lines
1381 bytes
now I really need help.
I write a CGI program in c and need it can be complimed on windows and
linux.
It should accept uploaded file to server .

(http code on client : <"form method"="POST" "action"="CGIofURL"
"enctype=multipart/form-data"> and "input type" = "file" value = "Upload
File" name=FileName>)

I need some help whatever and the best is some sample code.

wait your suggestion
rgds
john
Technical Details
Message-ID: <435a2142@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,943780c8a609b3ea,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "zhangsn" <zhangsn98@sohu.com>
From: "zhangsn" <zhangsn98@sohu.com>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: CGI how to write program for accepting  file uploaded to server
Date: Sat, 22 Oct 2005 19:30:00 +0800
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 219.149.28.53
Message-ID: <435a2142@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1129980226 219.149.28.53 (22 Oct 2005 04:23:46 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail