Techiio-author
Started by Debarghya DasSep 18, 2021

Open
Cypress-file-upload crashes using large file input files

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I want to upload a large file ~1GB to my nodejs Server by using cypress-file-upload. This is my code for uploading the file: cy.get('input[type=“file“').attachFile('1GB-File');

The following error message appears: cypress-file-upload error

This happens due to the limitation of memory usage for readFile. On production the file upload is done by websocket streams. How can I handle the e2e Test here. Is there any other chance to get this working?

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance