File upload doesn't work
See original GitHub issueSteps to recreate:
- Run following code:
const playwright = require("playwright");
(async () => {
const browser = await playwright["chromium"].launch({ headless: false });
const context = await browser.newContext();
await context.newPage("https://cgi-lib.berkeley.edu/ex/fup.html");
})();
- Click on “Choose File”
Expectation: A file chooser dialog will appear Result: No dialog appears
This bug is causing file uploads to not work.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
File Upload not working, how do i fix this? - Microsoft Community
1) Reset the browsers in Windows Settings > Apps & Features > Browser > Advanced Options > Reset and Repair to see if...
Read more >I Can't Upload My Files - Strikingly Help Center
If you're having trouble uploading your files, follow the troubleshooting steps. Step 1: Check your file The file size should be less...
Read more >Fix Files Won't Upload To Any Web Page or Email ... - YouTube
Unable to Upload Files to Any Website or email as attachment on Google Chrome or Microsoft Edge Error Not RespondingStep 1) Clear Browsing ......
Read more >I am Having Trouble Uploading an Assignment File.
This happens when you are uploading a large file or have a slow connection. Audio, video, and media rich PowerPoint presentations can result...
Read more >Troubleshooting file upload problems - UK Copyright Service
Make sure the file is not corrupted. · Copy the file to your home/desktop folder and upload from there. · Don't upload folders...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @VikramTiwari. Yes, that is a limitation. It is possible to intercept the file chooser dialog. Would that help?
Thanks @VikramTiwari. If you want to upload files, you can use the
setInputFiles
API onElementHandle
(docs). Example snippet below.