claude-code - 💡(How to fix) Fix [BUG] EXDEV ERROR When trying to attach a file into claude desktop app [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46789Fetched 2026-04-12 13:32:58
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×2

Error Message

When trying to attach a file into claude desktop i am getting this error:

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When trying to attach a file into claude desktop i am getting this error:

EXDEV: cross-device link not permitted, link 'D:*//.pdf' -> 'C:\Users*\AppData\Roaming\Claude\local-agent-mode-sessions\27a80532-7391-4182-9f12-ddefef0268cc\7c857a3a-a574-4380-8263-14992c5ae846*\uploads\a*.pdf'

What Should Happen?

It should import the document within the prompt

Error Messages/Logs

Steps to Reproduce

Just upload a file that is not in C:

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.87 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by ensuring that the file to be attached is located on the same drive as the Claude Code application, or by configuring the application to handle cross-device links.

Guidance

  • The error message EXDEV: cross-device link not permitted suggests that the issue is due to the file being located on a different drive (D:) than the Claude Code application (C:).
  • To verify this, try attaching a file that is located on the same drive as the application (C:).
  • As a potential workaround, consider moving the file to be attached to a location on the same drive as the application before attempting to attach it.
  • The fact that this worked in a previous version suggests that there may be a regression in the current version, and reporting this issue to the developers may help resolve the issue in a future update.

Example

No code snippet is provided as the issue does not involve code, but rather a configuration or application issue.

Notes

The solution may not be applicable if the file to be attached must be located on a different drive, and alternative solutions such as configuring the application to handle cross-device links or using a different attachment method may be necessary.

Recommendation

Apply workaround: Move the file to be attached to a location on the same drive as the application before attempting to attach it, as this is a simple and effective solution to the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING