MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Pasted files via Ctrl+V can't be read
Nobody has claimed this yet.
- 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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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