docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IFileAttachment

    Represents a file attachment with properties such as file path, size, type, and content type.

    Inherited Members
    IAttachment.Type
    IAttachment.AttachmentId
    IAttachment.Metadata
    IAttachment.Created
    IAttachment.CreatedBy
    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
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)