MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Pasted files via Ctrl+V can't be read

Open
#652 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Description
Files pasted into websites via Ctrl + V can't be read via DataTransferItem.getAsFile (returning null). As far as I know, there shouldn't be any additional permission necessary.

Version
SDK: 3.0.0-preview3.201113.0
Runtime: Beta 88.0.702.0
Framework: WinUI 3 preview 3
OS: Win10, 20236

Repro Steps
<controls:WebView2 x:Name="webView1" Source="https://codepen.io/netsi1964/embed/IoJbg?default-tab=result" />
Try to paste an image file into one of the three boxes.

Additional context
The issue happens at line 44 (file = clipboardData.items[i].getAsFile();): getAsFile returns null.

AB#30831272

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the WebView2 control and the CodePen URL from the report, then inspect the JavaScript at line 44 where DataTransferItem.getAsFile is called. Compare paste behavior in the listed SDK, runtime, framework, and Windows versions; done means pasted image files can be read through the reported API.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
desktop, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.