This method transfers a file to the HTTP server. (It includes connecting to and disconnecting from the server.)
Parameters
Name | Explanation |
---|---|
ServerName | The name of the HTTP server or IPAddress |
ProxyName | The Proxy Server IP Address |
PortNo | Port Number (default is 80) |
RemoteFilePath | The destination on the HTTP server where the file is to be saved. Includes path and file name |
UserName | The username needed to access the HTTP server |
Password | The password needed to access the HTTP server |
TransPercent | The percentage of the file that is tranferred before the ImageKit Progress event is generated |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The HTTPPutFile method transfers a file to the HTTP server. (It includes connecting to and disconnecting from the server.) This method can only be executed from the client computer. It does not operate on the server. The TransPercent parameter sets the amount of transfer in percentage before the ImageKit Progress event fires. For example, if the TransPercent = 10, the ImageKit Progress event will fire 10 times, 1 time for each 10% of file transferred.
The file to be transferred is specified by the FileName property.
When not using a proxy server set an empty string, set to NULL(Visual C++) or vbNullString(Visual Basic)
Note: The directory on the server where the file will be put must have write permission. On Windows 2003 server, WebDAV needs to be enabled.