[fpc-pascal] CGI upload app

Michael Van Canneyt michael at freepascal.org
Wed Jun 6 18:07:56 CEST 2007



On Wed, 6 Jun 2007, Burkhard Carstens wrote:

> Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt:
> > On Tue, 5 Jun 2007, Darius Blaszijk wrote:
> > > Hi I would like to upload a file through a web page. How can I do
> > > this using FPC? Is there any example available?
> >
> > The fpweb or cgiapp components can do this for you.
> 
> The README.TXT in lazarus/components/fpweb/ states:
> "fpWeb does not work with fpc 2.0.4.
> It needs at least 2.3.x."
> 
> Is 2.3.x still minimum, or could it work with 2.1.4/2.1.5, too?

It could, except the apache support.

> 
> I've been able to install the weblaz package in lazarus with fpc-2.1.5, 
> but I can't compile an apache module due to missing fpApache unit. 
> 
> fpApache seems to be missing in packages/fcl-web/Makefile.fpc in 
> fixes_2_2 as well as in trunk.
> Simply adding fpApache to the Makefile.fpc (and doing the fpcmake -Tall) 
> doesn't solve it: "can't find unit httpd used by fpApache".
> Here I'm loosing it. From the buildlog I can see, that there is no 
> -Fu{fpcsrc}/packages/base/httpd/ when compiling fpApache, even though 
> httpd-1.3 -2.0 and 2.2 are compiled before. 
> 
> any hints?

Hm. As far as I know, it should build - it builds here.
The problem may be that your fpcmake is outdated. I think peter or me did
some fixes in fpcmake.

Michael.



More information about the fpc-pascal mailing list