Class UploadableFile
A file that can be uploaded.
Inherited Members
Namespace: Worldline.Connect.Sdk.Domain
Assembly: Worldline.Connect.Sdk.dll
Syntax
public class UploadableFile
Constructors
UploadableFile(string, Stream, string, long)
Declaration
public UploadableFile(string fileName, Stream content, string contentType, long contentLength = -1)
Parameters
Type | Name | Description |
---|---|---|
string | fileName | |
Stream | content | |
string | contentType | |
long | contentLength |
Properties
Content
A stream with the file's content.
Declaration
public Stream Content { get; }
Property Value
Type | Description |
---|---|
Stream |
ContentLength
The file's content length, or -1 if not known.
Declaration
public long ContentLength { get; }
Property Value
Type | Description |
---|---|
long |
ContentType
The file's content type.
Declaration
public string ContentType { get; }
Property Value
Type | Description |
---|---|
string |
FileName
The name of the file.
Declaration
public string FileName { get; }
Property Value
Type | Description |
---|---|
string |