🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3974

Re: Indy ftp server

#3974
From: Jonny
Date: Wed, 11 May 2005 17:39
39 lines
1969 bytes
Thank's I'll try this and get back ?
Jonny

"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>
>"Jonny" <jonny.heyman@cekab.se> wrote in message
>news:42806d24$1@newsgroups.borland.com...
>
>> Having syntax problem with the code:
>
>What EXACTLY are you having a problem with?  Please be more specific.
>
>> What should it look like to handle upload request ie. put from a ftp
>client?
>
>You are supposed to be creating a suitable TStream object, such as a
>TFileStream, to handle the file storage.  For example:
>
>    void __fastcall TfrmMAIN::IdFTPServerStoreFile(TIdFTPServerThread
>*ASender, const AnsiString AFileName, bool AAppend, TStream *&VStream)
>    {
>        // translate AFileName from an FTP-relative path
>        // into a local HD path as needed, then...
>        AnsiString LocalFileName = "...";
>
>        Word Flags;
>        if( (AAppend) && FileExists(LocalFileName) )
>            Flags = (fmOpenReadWrite | fmShareDenyWrite);
>        else
>            Flags = fmCreate;
>
>        VStream = new TFileStream(LocalFileName, Flags);
>    }
>
>
>Gambit
>
>
Technical Details
Message-ID: <42824366$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42806d24$1@newsgroups.borland.com> <4280e538$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,80127a04bc5df55
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonny" <jonny.heyman@cekab.se>
Sender: "Jonny" <jonny.heyman@cekab.se>
Reply-To: "Jonny" <jonny.heyman@cekab.se>
Subject: Re: Indy ftp server
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 195.67.241.23     
References: <42806d24$1@newsgroups.borland.com> <4280e538$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <42824366$1@newsgroups.borland.com>
Date: 11 May 2005 10:39:50 -0700
X-Trace: newsgroups.borland.com 1115833190 207.105.83.66 (11 May 2005 10:39:50 -0700)
Lines: 40
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail