Using Win32 functions in Visual FoxPro Image Gallery
Internet Functions (WinInet)
..msdn
CreateMD5SSOHash
DeleteUrlCacheEntry
DetectAutoProxyUrl
FindCloseUrlCache
FindFirstUrlCacheEntry
FindFirstUrlCacheGroup
FindNextUrlCacheEntry
FindNextUrlCacheGroup
FtpCommand
FtpCreateDirectory
FtpDeleteFile
FtpFindFirstFile
FtpGetCurrentDirectory
FtpGetFile
FtpGetFileSize
FtpOpenFile
FtpPutFile
FtpRemoveDirectory
FtpRenameFile
FtpSetCurrentDirectory
GetUrlCacheEntryInfo
HttpOpenRequest
HttpQueryInfo
HttpSendRequest
InternetAttemptConnect
InternetAutodial
InternetAutodialHangup
InternetCanonicalizeUrl
InternetCheckConnection
InternetCloseHandle
InternetConnect
InternetCrackUrl
InternetDial
InternetFindNextFile
InternetGetConnectedState
InternetGetConnectedStateEx
InternetGetCookie
InternetGetLastResponseInfo
InternetGoOnline
InternetOpen
InternetOpenUrl
InternetQueryDataAvailable
InternetQueryOption
InternetReadFile
InternetSetCookie
InternetSetFilePointer
InternetTimeFromSystemTime
InternetTimeToSystemTime
InternetWriteFile
Code examples:
Custom FTP Class for Visual FoxPro application
Uploading local file to FTP server with FtpPutFile
FtpPutFile
    Add comment     W32 Constants      Translate this page
Stores a file on the FTP server.
Code examples:
Custom FTP Class for Visual FoxPro application
Uploading local file to FTP server with FtpPutFile
Declaration:
BOOL FtpPutFile(
    HINTERNET hConnect,
    LPCTSTR lpszLocalFile,
    LPCTSTR lpszNewRemoteFile,
    DWORD dwFlags,
    DWORD_PTR dwContext
);

FoxPro declaration:
DECLARE INTEGER FtpPutFile IN wininet;
    INTEGER hConnect,;
    STRING  lpszLocalFile,;
    STRING  lpszNewRemoteFile,;
    INTEGER dwFlags,;
    INTEGER dwContext
Parameters:
hConnect
[in] Valid HINTERNET handle to an FTP session.

lpszLocalFile
[in] Pointer to a null-terminated string that contains the name of the file to send from the local system.

lpszNewRemoteFile
[in] Pointer to a null-terminated string that contains the name of the file to create on the remote system.

dwFlags
[in] Unsigned long integer value that contains the conditions under which the transfers occur.

dwContext
[in] Pointer to an unsigned long integer value
Return value:
Returns TRUE if successful, or FALSE otherwise.
My comment:
When you upload files using the FtpPutFile function you can start the process and wait until it finishes.

During the process you have no backward information, and then you can not estimate the uploading progress. Nevertheless this method is quite good on reliable FTP connections.

In a situation when you want to have more control on the process another function is more appropriate -- InternetWriteFile
Word Index links for the FtpPutFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-24 12:00:00
Modified: 2001-11-26 16:02:38
Visited in last 7 days: 35
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.156.92.243)
9 sec.Function: 'GetLongPathName'
Function group: 'File Management'
18 sec.Function: 'CryptBinaryToString'
Function group: 'Cryptography Reference'
26 sec.Function: 'SQLGetFunctions'
Function group: 'ODBC API'
34 sec.Articles
41 sec.Example: 'Custom HttpRequest class (WinINet)'
49 sec.Function: 'QueryDosDevice'
Function group: 'File Management'
58 sec.Function: 'NetWkstaTransportEnum'
Function group: 'Network Management'
1.1 min.Example: 'Opening access to the Microsoft Internet functions for the application'
1.25 min.Examples
1.4 min.Function: 'sndPlaySound'
Function group: 'Windows Multimedia'
Google
Advertise here!