Member Junction
    Preparing search index...

    Interface UploadFileOptions

    Options for uploading a file to MJ Storage.

    interface UploadFileOptions {
        content: Buffer;
        contextUser: UserInfo;
        fileName: string;
        mimeType: string;
        pathPrefix?: string;
        provider?: IMetadataProvider;
        storageAccountId?: string;
    }
    Index

    Properties

    content: Buffer

    Raw file content as a Buffer

    contextUser: UserInfo

    User context for DB operations and credential access

    fileName: string

    File name (used for the MJ: Files record and the storage path)

    mimeType: string

    MIME type of the file (e.g., 'application/pdf')

    pathPrefix?: string

    Optional path prefix within the storage bucket. Defaults to 'artifacts/<date>/<uuid>'.

    Optional metadata provider. Defaults to Metadata.Provider.

    storageAccountId?: string

    Optional pre-resolved FileStorageAccount ID. When provided, the file is uploaded to this specific account. Otherwise, the first active account is used.