ClientFileUploadFromStream Method (Stream, String) |
Uploads from the specified stream to MOVEit Transfer as the specified file.
Namespace: MOVEit.DMZ.APIAssembly: MOVEit.DMZ.API (in MOVEit.DMZ.API.dll) Version: 9.0.0.0
Syntax public string FileUploadFromStream(
Stream InputStream,
string MOVEitPath
)
Public Function FileUploadFromStream (
InputStream As Stream,
MOVEitPath As String
) As String
public:
String^ FileUploadFromStream(
Stream^ InputStream,
String^ MOVEitPath
)
Parameters
- InputStream
- Type: System.IOStream
Stream from which to read the data to be uploaded to the MOVEit Transfer host. - MOVEitPath
- Type: SystemString
Path of the file on the MOVEit Transfer host to upload to.
Return Value
Type:
StringID of the newly uploaded file if successful; otherwise, "0".
Remarks
Since the length of the file data is not known at the start of the upload when using this method,
MOVEit Transfer will not be able to fully check the validity of the upload before it begins. If the
uploaded data exceeds either the user's or the folder's quota, the upload will not fail until
after all data has been transferred.
See Also