<< Back


pfnFileUploaded

Synopsis

void (CALLBACK* pfnFileUploaded) (FVSDK_CALLBACK_DATA pvFileUploadedData, LPCTSTR pszSourcePath, LPCTSTR pszDestPath);

Description

Called after a file has been uploaded using the high-level function FVSDK_Upload(). Performing an upload using the low-level functions FVSDK_CreateFile() and FVSDK_WriteFile() will not result in this callback function being called.

Parameters

pvFileUploadedData

The DWORD value set in the FVSDK_Session structure. The meaning of this value is application defined.

pszSourcePath

A NULL terminated string containing the full path for the local source file.

pszDestPath

A NULL terminated string containing the full path for the remote file.

Return Value

None

Example

void CALLBACK OnFileUploaded(FVSDK_CALLBACK_DATA pvFileUploadedData, LPCTSTR pszSourcePath, LPCTSTR pszDestPath)
{
    CString sMsg;

    // build a message for the user announcing the file has been uploaded
    sMsg.Format("The local file:\r\n%s\r\n\nhas been uploaded to:\r\n%s", pszSourcePath, pszDestPath);

    // display the message to the user
    AfxMessageBox(sMsg, (MB_ICONINFORMATION | MB_OK));
} // OnFileUploaded