@ptkl/sdk - v1.3.4
    Preparing search index...

    Type Alias MediaUploadPayload

    Payload for multipart form upload

    type MediaUploadPayload = {
        expiresAt?: string;
        files: File[];
        metadata?: Record<string, string>;
        public?: boolean;
        replace?: boolean;
        uploadDir: string;
    }
    Index

    Properties

    expiresAt?: string

    Expiration timestamp in ISO 8601 format (RFC3339)

    files: File[]

    Array of files to upload

    metadata?: Record<string, string>

    Additional metadata as key-value pairs

    public?: boolean

    Whether files should be publicly accessible

    replace?: boolean

    If true, replace files if they already exist

    uploadDir: string

    Directory path where files should be uploaded