docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ICreateFileAttachmentRequest

    An interface for request to create a new annotation file attachment

    Inherited Members
    ICreateAttachmentRequest.Type
    ICreateAttachmentRequest.Metadata
    Namespace: Unity.Cloud.Collaboration.Models.AttachmentRequest
    Assembly: Unity.Cloud.Collaboration.dll
    Syntax
    public interface ICreateFileAttachmentRequest : ICreateAttachmentRequest

    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, IsRequired = 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)