-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] I cannot upload large files #273
Comments
Having the same issue though the error is slightly different (~500MB .csv file):
The error occurs in Relates to ? |
This is still an issue and has nothing to do with the server side. |
Really need a workaround on this bug. Cannot use cypress otherwise. Any help? |
I also need this. |
I also stumbled now over this and it would be nice to have a workaround for that |
October 2023... Issue still not solved. I need to upload files approx 500 MB... |
This is likely a Node.js limitation. Node.js serves as the underlying runtime for Cypress and imposes constraints on string sizes to prevent excessive memory consumption. Unfortunately, this limit is not easily adjustable. To tackle this issue, you might need to consider the following approaches: Upload Smaller Chunks:
Use an Alternative Method:
My team and I are currently exploring these options, and if we find a workaround for this issue, I will share it here! |
FYI, we haven't found a workaround for this specific issue yet. A colleague who's assisting us in finding a possible solution came across this StackOverflow post that might shed light on why we're facing challenges when working with large files in Cypress. It's worth noting that this issue doesn't occur on my other colleague's machine, who uses MacOS on his Macbook M1. Our team continues to investigate potential workarounds, but at this moment, we haven't discovered an alternative for handling file uploads of 500 MB or more using Cypress on Windows or Linux machines. |
Current behavior:
I have a file that's 100MBs in size. It seems that the cy.fixture is trying to load this into memory before attaching to target input. It seems that this plugin doesn't play well with large files. Can you think of any workaround? Thanks!
Desired behavior:
I should be able to upload 100MB to 1GB files without delay.
Steps to reproduce: (app code and test code)
cy.get('#uploadInput')
.attachFile('100MB-File');
=> either a timeout issue or the following
Invalid string length
Versions
Cypress v6.3.0
Cypress File Upload v5.0.2
The text was updated successfully, but these errors were encountered: