Click or drag to resize

FileClientUpload Method

To upload the file to the site.

Namespace:  StockSharp.Community
Assembly:  StockSharp.Community (in StockSharp.Community.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public FileData Upload(
	string fileName,
	byte[] body,
	bool isPublic,
	Action<int> progress = null,
	Func<bool> cancel = null
)

Parameters

fileName
Type: SystemString
File name.
body
Type: SystemByte
File body.
isPublic
Type: SystemBoolean
Is the file available for public.
progress (Optional)
Type: SystemActionInt32
Progress callback.
cancel (Optional)
Type: SystemFuncBoolean
Cancel callback.

Return Value

Type: FileData
File data. If the operation was cancelled by cancel, will return.
See Also