OFTPConnectionDownloadDirectory Property

The directory to which files will be saved.


ANSI (Cross Platform)
char* GetOFTPConnectionDownloadDirectory(int iConnectionId);
int SetOFTPConnectionDownloadDirectory(int iConnectionId, const char* lpszOFTPConnectionDownloadDirectory); Unicode (Windows) LPWSTR GetOFTPConnectionDownloadDirectory(INT iConnectionId);
INT SetOFTPConnectionDownloadDirectory(INT iConnectionId, LPCWSTR lpszOFTPConnectionDownloadDirectory);
- (NSString*)OFTPConnectionDownloadDirectory:(int)connectionId;
- (void)setOFTPConnectionDownloadDirectory:(int)connectionId:(NSString*)newOFTPConnectionDownloadDirectory;

IPWORKSEDI_EXTERNAL void* IPWORKSEDI_CALL IPWorksEDI_OFTPServer_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_OFTPServer_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_OFTPServer_CheckIndex(void *lpObj, int propid, int arridx);

Default Value



The directory to which files will be saved.

This specifies the directory where files received by the server will be saved. This must be set before the client begins sending files. Set this in the Connected, AcceptConnection, or ConnectionRequest events, for instance:

oftpserver1.SetOFTPConnectionDownloadDirectory(123456789, "C:\\Downloads");

The ConnectionId parameter specifies the index of the item in the array. The size of the array is controlled by the OFTPConnectionCount property.

This property is not available at design time.

Data Type


Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 C++ Edition - Version 20.0 [Build 8203]