Posts files and directories to a desired site.
Syntax
HRESULT WpPostFile( LONG hWnd, BSTR bstrLocalPath, LONG *plSiteNameBufLen, BSTR bstrSiteName, LONG * plDestURLBufLen, BSTR bstrDestURL, LONG lFlags, LONG * plRetCode );
Parameters
- hWnd
- Same as WpPost.
- bstrLocalPath
- String name of a single file or directory to be posted. If the string specifies a directory (and the WPF_NO_RECURSIVE_POST flag is not set in the lFlags parameter), all the files in that directory are posted.
- plSiteNameBufLen
- Same as WpPost.
- bstrSiteName
- Same as WpPost.
- plDestURLBufLen
- Same as WpPost.
- bstrDestURL
- Same as WpPost.
- lFlags
- Same as WpPost.
- plRetCode
- Address of a long integer that receives the return code of the operation.
Return Value
Return values are the same as WpPost.
Remarks
The WpPostFile function is simply a version of the WpPost function that is accessible through WpObj's COM Interface. The functionality is identical to that described in WpPost except as follows:
- The WpPostFile function can only accept a single file for posting (although that file may be a directory, in which case all files within it will be posted).
- The WPF_NO_WIZARD flag is disabled, and the WPF_SHOWPAGE_SRCFILE flag is automatically set. This is to ensure that users who may download a Web page that uses this method are always prompted before any files can be uploaded from their machine.
Function Information
Windows NT Use version 4.0 and later Windows Use Windows 95 and later Header Declared in Wpapi.h Import Library Link with WebPost.lib Minimum availability Internet Explorer 4.0