Interface IFileAttachment
Represents a file attachment with properties such as file path, size, type, and content type.
Inherited Members
Namespace: Unity.Cloud.Collaboration.Models.Attachments
Assembly: Unity.Cloud.Collaboration.dll
Syntax
public interface IFileAttachment : IAttachment
Properties
ContentType
The file content type, MIME type if relevant This should match the MIME type of the file if it exists. https://developer.mozilla.org/en-US/docs/Web/HTTP/MIME_types"
Declaration
[DataMember(Name = "contentType", EmitDefaultValue = true)]
string ContentType { get; }
Property Value
| Type | Description |
|---|---|
| string |
FilePath
A simple filename or a relative path to a target directory for the attachment Examples:
- "image.jpeg"
- "test/assets/image.jpeg"
Declaration
[DataMember(Name = "filePath", EmitDefaultValue = true)]
string FilePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
FileSize
The file size
Declaration
[DataMember(Name = "fileSize", EmitDefaultValue = true)]
long FileSize { get; }
Property Value
| Type | Description |
|---|---|
| long |
FileType
The file type Examples:
- "image"
- "video"
- "audio"
- "text"
- "3D model"
- "Other"
Declaration
[DataMember(Name = "fileType", EmitDefaultValue = true)]
string FileType { get; }
Property Value
| Type | Description |
|---|---|
| string |