[BUG] Unable to upload big file on firefox.
See original GitHub issueContext:
- Playwright Version: 1.6.2
- Operating System: Win 10
- Node.js version: 14
- Browser: Firefox
Code Snippet
const {firefox} = require('playwright');
const path = require('path');
(async function() {
const browser = await firefox.launch({headless: false});
try {
const page = await browser.newPage();
await page.goto('https://pdf.io/compress/');
await page.setInputFiles('#upload_button input', path.join(process.cwd(), 'big.pdf'));
} finally {
await browser.close();
}
})();
Describe the bug
When I try to upload big pdf, for example this one: http://research.nhm.org/pdfs/29985/29985-001.pdf I get an error in example unable to upload file. At the same time chrome uploads file well, also small files are uploaded well on firefox but big ones don’t.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Can't upload files to websites. What to do? - Mozilla Support
Hello, Try Firefox Safe Mode to see if the problem goes away. Firefox Safe Mode is a troubleshooting mode that temporarily turns off...
Read more >Can't upload big files (over 250-300MB) | Firefox Support Forum
Can't upload big files (over 250-300MB) ... This problem occurs on google drive or similar services (disk.yandex.ru, cloud.mail.ru).
Read more >Suddenly (after 27th Oct) Firefox will not upload files larger ...
If I upload files using Firefox: Up to 27th Oct, I have had no problems uploading files to my website (WordPress - 2...
Read more >uploading files that are larger the 2GB fails - Bugzilla@Mozilla
NET CLR 1.1.4322) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529 When trying to upload a file that is larger...
Read more >Bug with uploading "large" files in addon - Mozilla Discourse
When I try to upload my extension package I get the following error saying that “large” js files (over 4MB) are not supported...
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 FreeTop 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
Top GitHub Comments
This is fixed now; the fix will be available in the next release - Playwright v1.12
Or on May 14 PST time in the
@next
channel:npm i playwright@next
@achingbrain thank you for the awesome repro.
This happens due to the way our network instrumentation interacts with POST data in Juggler. Specifically, it looks like NetUtil.readInputStream call is both: a) racy & partial b) closing the stream, making the final rewind-back fail.
Note that this all only happens with Blob uploads as POST requests.