TIdMultiPartFormDataStream.AddFile and unicode FileName

Giganews Newsgroups
Subject: TIdMultiPartFormDataStream.AddFile and unicode FileName
Posted by:  Dorin Marcoci (marcod…@matrix.md)
Date: Sun, 24 Sep 2006

Hello Indy Team,

I have some troubles adding a file with unicode file name.
AddField have this declaration:

procedure AddFile(
    const AFieldName: string,
    const AFileName: string,
    const AContentType: string
);

We see AFileName is declared as string and not as WideString.
Is there another way to do this (without change indy implementation)? Like
to add a stream?
I can open a stream to that file using TNT (unicode) version of
TFieldStream.

Thanks,
Dorin Marcoci

Replies