[BUG] RangeError [ERR_FS_FILE_TOO_LARGE]: File size (2876747111) is greater than 2 GB
See original GitHub issueHi,
Am trying to upload a file of more than 2GB in size and getting the below error :
RangeError [ERR_FS_FILE_TOO_LARGE]: File size (2876747111) is greater than 2 GB at readFileHandle (internal/fs/promises.js:273:11)
Context:
- Playwright Version: 1.24.2
- Operating System: MAC
- Node.js version: v14.15.4
- Browser: Chromium
- Language : Typescript
- FileSize that am uploading : 2.8 GB
await this.page.locator("div input[name='file’]").setInputFiles(filePath);
Please let me know how to resolve this issue.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
File size (3472064213) is greater than 2 GB - Stack Overflow
According to this answer on GitHub, 2GB is the limit: That is the max buffer size in node. To import larger files, the...
Read more >File size (15344223093) is greater than 2 GB - n8n community
I need to upload files larger than 2GB to Google Drive. Share the output returned by the last node. File size (15344223093) is...
Read more >Extent exceeds 2 GB file size limit - Enable large file support
(8897) SYSTEM ERROR: Attempted to exceed maximum size on file <pname>. ... Quota limits prevent files larger than 2GB on WINDOWS
Read more >Attachment size exceeds the allowable limit error - Outlook
This limit applies whether you are adding one large attachment that is greater than 20 megabytes (MB) or several attachments whose sum total ......
Read more >Max file size - Flexera Community
ISDEV : fatal error -5023: Error building table File It seems that the problem is a file size. One of the source files...
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

Yes. I see it is pointing to 1.20.1 version. Though I have 1.25.1 version in my local package.json, it’s taking from our project common repository and showing 1.20.1. After properly updating, it is working fine. 😃 Able to upload more than 2.5GB file as per our requirement.
npm ls playwright to check the playwright versions? - This helped. thanks !
I still cannot reproduce it, what is the smallest file size that fails for you?
I actually don’t see
readFileHandlein the recent versions of playwright, can you runnpm ls @playwright/testandnpm ls playwrightto check the playwright versions?