Ftp.PutUniqueFile Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
PutUniqueFile(Stream)
Uploads the content of the stream to the file with unique pathname on the server.
Declaration
public string PutUniqueFile(Stream sourceStream)
Parameters
Type | Name | Description |
---|---|---|
Stream | sourceStream | The source data stream. |
Returns
Type | Description |
---|---|
String | Name of the newly created unique file on the server. |
Remarks
Represents the FTP STOU command.
Use with caution - many servers do not support this and many servers support this incorrectly (MS FTP).
PutUniqueFile(String)
Uploads the content of the local file to the file with unique pathname on the server.
Declaration
public string PutUniqueFile(string localPath)
Parameters
Type | Name | Description |
---|---|---|
String | localPath | The path of the local file. |
Returns
Type | Description |
---|---|
String | Name of the newly created unique file on the server. |
Remarks
Represents the FTP STOU command.
Use with caution - many servers do not support this and many servers support this incorrectly (MS FTP).