Search Results for

    Show / Hide Table of Contents

    Interface IUploadedFile

    Represents a normalized uploaded-file resource returned by provider APIs. This interface exposes shared file metadata so higher-level SDK code can remain provider-agnostic.

    Inherited Members
    IAIResource.Api
    IAIResource.OwnedBy
    IAIResource.CreatedAt
    IAIResource.Description
    IAIResource.IsCustom
    IAIResource.GetMetadata()
    IHasId<string>.Id
    IHasName.Name
    IDeprecatable.IsDeprecated
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public interface IUploadedFile : IAIResource, IData, IHasId<string>, IHasName, IDeprecatable

    Properties

    | Edit this page View Source

    ByteSize

    Gets the file size in bytes. This value is useful for validating upload/download limits and storage usage.

    Declaration
    int ByteSize { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    ExpiresAt

    Gets the file expiration timestamp, if the provider defines one. Returns null when the file has no expiration policy.

    Declaration
    UnixTime? ExpiresAt { get; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    MimeType

    Gets the MIME type associated with the file. This can be used to select preview, parsing, or processing paths.

    Declaration
    MimeType MimeType { get; }
    Property Value
    Type Description
    MimeType
    | Edit this page View Source

    Uri

    Gets a provider URL for this file, if available. Some providers expose signed URLs while others may return no URL.

    Declaration
    string Uri { get; }
    Property Value
    Type Description
    string

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    CoreLibTypeExtensions.GetNameOrDash(IData)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation