question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Unable to upload big file on firefox.

See original GitHub issue

Context:

  • 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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aslushnikovcommented, May 13, 2021

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

1reaction
aslushnikovcommented, May 12, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found