PDF Web Viewer
    Preparing search index...

    Interface IFileItem

    One row in any file source's listing. Every provider — the host's recents, its own cloud, OneDrive / Google Drive / Dropbox — normalizes its own payload into this, so the home screen holds a single collection type and renders every source identically. Folders are navigable, files are openable; the UI marks types the viewer can't open and blocks opening them (see isSupportedOpenFile).

    interface IFileItem {
        downloadUrl?: string;
        id: string;
        isFolder: boolean;
        name: string;
        path?: string;
        ref?: string;
        size?: number;
        sourceAccountId?: string;
        sourceDisconnected?: boolean;
        sourceProviderId?: string;
    }
    Index

    Properties

    downloadUrl?: string

    Pre-authenticated direct download URL, when the provider supplies one.

    id: string

    Provider item id, opaque to the UI and handed back to the provider verbatim.

    isFolder: boolean

    True for folders (navigable), false for files (openable). Always false in a flat source.

    name: string

    Display name.

    path?: string

    Host-side file path, when the source has one (a recent's path). It becomes the opened document's filePath, which drives two things: reopening the item switches to its existing tab instead of loading a second copy, and the device save handler receives it, so the document saves back in place instead of falling through to "save as". Leave unset when the item has no stable host-side location.

    ref?: string

    Opaque provider-scoped reference (e.g. OneDrive driveId); ignored by the UI.

    size?: number

    File size in bytes, when known — used for download progress when the response omits Content-Length.

    sourceAccountId?: string

    The account that source was connected as when the row was recorded — see sourceProviderId.

    sourceDisconnected?: boolean

    True when that source exists but is not connected right now: the row stays on screen — greyed, unopenable, labelled "Disconnected" — instead of vanishing or failing a download it cannot make. Only the recents history sets it.

    sourceProviderId?: string

    Which source really owns this item, when the listing it came from is not that source: only the recents history sets it, because its rows are other sources' files. The UI shows it as a badge, and reads and saves are handed to that provider instead.