Class LocalUploadSource
Provides access to a file in the local file system that will be uploaded to Content Hub.
Inheritance
object
LocalUploadSource
Implements
Namespace: StylelabsStylelabs.MSdkWebClientModelsUpload
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
RequestResponse
public class LocalUploadSource : IUploadSource
Constructors
LocalUploadSource(string, string)
Initializes a new instance of the LocalUploadSource class.
Declaration
RequestResponse
public LocalUploadSource(string path, string name = "")
Parameters
Type | Name | Description |
---|---|---|
string | path |
The local file path pointing to the file. |
string | name |
The file name. |
Properties
Name
Gets the name of the file.
Declaration
RequestResponse
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetStreamAsync()
Gets a to access the underlying source.
Declaration
RequestResponse
public Task<Stream> GetStreamAsync()
Returns
Type | Description |
---|---|
Task<>Stream |
A . |