Skip to content

Title: [DB Version 2.0.2][macOS] Uploading non-PDF files inserts plain text instead of clickable asset links #1437

Closed

Description

@hgao123

Search first

  • I searched and no similar issues were found

What Happened?

Environment

Logseq version: 2.0.2 (DB version)

Operating system: macOS

Graph: Reproduced in both a newly created DB graph and a graph migrated from the file-based version

Reproduce the Bug

Open a newly created DB graph.

Drag and drop a .txt or .xlsx file into a block, or use /upload.

Observe the inserted filename.

Exit block-editing mode.

Attempt to upload the same file again.

Actual behavior

The file is successfully copied into the graph's assets/ directory.

Only the filename is inserted into the block as plain, non-clickable text.

The filename remains non-clickable after leaving editing mode.

A second upload detects the existing asset but does not insert a reference.

Expected Behavior

Uploading a supported non-PDF file should automatically insert a clickable asset reference into the block.

An existing asset should be referenceable without requiring another file upload.

Additional findings

PDF uploads generate clickable references correctly.

Manually inserting a Markdown link such as Open spreadsheet works correctly.

The issue is reproducible in a completely new DB graph, ruling out migration-specific causes.

Impact

Users must manually construct Markdown links for non-PDF attachments, reducing the usability of Logseq's file-upload functionality.

Screenshots

No response

Desktop or Mobile Platform Information

macOS 27.0.1. Logseq 2.0.2.

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Activity

  1. transferred this issue fromlogseq/logseqon Oct 13, 2026
  2. yuxi-liu-wired commented on Oct 28, 2026

    @yuxi-liu-wired

    Fixed in logseq/logseq#13898 (fix(assets): non-media assets, assets:// paths on Linux, theme before first paint, published pages icons). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.

  3. added 11 commits that reference this issue on Oct 29, 2026
    8f5f8c6
    c878cd7
    75f2c7a
    a2bfd93
    ba24db5
    3e69e1f
    01025df
    e672324
    72477a3
    cc2e609
    da91dd5
  4. hzphzp commented on Nov 5, 2026

    @hzphzp

    Additional confirmation on the released Logseq Desktop 2.0.2 build:

    • Revision: 533ac43 (build time reported by the bundled CLI: 2026-10-07T14:07:14.501Z).
    • Platform: macOS 27.0.1, Apple Silicon / arm64.
    • Graph type: DB graph.
    • File type confirmed here: .txt.

    Dragging a local TXT file into an existing journal block creates an asset node, but the drop location displays only the filename without its extension as ordinary text, rather than an actionable attachment link.

    Read-only checks of the resulting graph and local asset file confirm that:

    1. The node has the #Asset tag, logseq.property.asset/type = "txt", a size and a checksum.
    2. The corresponding assets/<asset-uuid>.txt file exists.
    3. Its actual byte count and SHA-256 match the stored asset metadata.
    4. Retrying the same upload produces the existing-asset warning. The underlying file has already been saved; retrying does not resolve the missing attachment link.

    Source inspection at the released revision also matches the diagnosis in logseq/logseq#13898:

    • block-title routes PDF asset titles to asset-cp, while other ordinary file types fall through to text rendering.
    • The separate media content branch handles images, audio and video.
    • asset-link already has the Electron file-opening handler for generic assets; the TXT node does not reach that renderer.

    Expected: dropping a TXT attachment should produce a visible, clickable file entry that opens the saved file. Automatically importing the TXT contents as note blocks is not required for this report.

    This confirmation concerns the released 2.0.2 build. I have not tested the proposed PR build or a newer nightly, and have not repeated the test with all plugins disabled. The private filename, note contents, graph name, local paths and asset identifiers are intentionally omitted.

  5. added a commit that references this issue on Nov 11, 2026
    dc8c8f2
  6. 2 remaining items

  7. added 14 commits that reference this issue on Nov 12, 2026
    254275e
    7498ba9
    3285e1d
    f37e76e
    09596ee
    3c1f37c
    f6bdb7b
    18ffcc7
    fa1844c
    a2375b8
    83e5266
    60eeb8c
    d1d63f9
    b5f467c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions