Skip to content
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

File upload/attaching not working for file size >200MB on Cypress 13 #29668

Open
Brestachan opened this issue Jun 13, 2024 · 4 comments
Open
Labels
stage: needs investigating Someone from Cypress needs to look at this stale no activity on this issue for a long period type: bug v13.0.0 🐛 Issue present since 13.0.0

Comments

@Brestachan
Copy link

Brestachan commented Jun 13, 2024

Current behavior

In my current test scripts, which were used on Cypress 12 without problems, I have been using and should continue using files over 200MB in size. After updating to 13, Cypress fails to upload them.
If I try to upload file of that size, it gets stuck in infinite loop, running indefinitely (18 hours last time, after which I stopped it manually).
Additionally, I have tried with >500MB file, which was also being used prior Cypress 13, and in this case, Cypress fails and closes the whole app.

Desired behavior

It should behave like in version 12, and there should be no problems in terms of file size.

Test code to reproduce

    // Upload file Virtual Machine Image
    if (imageName) {
      const virtualMachineImage = imageName
      const fullFileName = 'cypress/fixtures/bin/'.concat(virtualMachineImage)
      cy.get('#iiotUploadFileVmImageInput', { force: true }).selectFile(fullFileName, {
        force: true,
      })
    }

Cypress Version

13.11

Node version

20.14

Operating System

Linux

Debug Logs

No response

Other

No response

@jennifer-shehane
Copy link
Member

I can recreate this, just within cypress open within Chrome 126. This passes in v12.17.4 and hangs in 13.0.0.

<html>
<body>
  <label for="avatar">Choose a profile picture:</label>
  <input type="file" id="avatar" name="avatar" />
  <script>
  </script>
</body>
</html>
it('uploads 200MB file', () => {
  cy.visit('index.html')
  cy.get('input[type=file]').selectFile('cypress/fixtures/200MB.bin')
})

12.17.4

Screenshot 2024-06-24 at 12 53 10 PM

13.0.0

Screenshot 2024-06-24 at 12 52 00 PM

@jennifer-shehane jennifer-shehane added type: bug v13.0.0 🐛 Issue present since 13.0.0 labels Jun 24, 2024
@jennifer-shehane jennifer-shehane self-assigned this Jun 24, 2024
@jennifer-shehane
Copy link
Member

This bug was introduced in this pull request: #27592

@jennifer-shehane jennifer-shehane added the stage: needs investigating Someone from Cypress needs to look at this label Jun 25, 2024
@YutongZhuu
Copy link

Having the same issue here.

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs investigating Someone from Cypress needs to look at this stale no activity on this issue for a long period type: bug v13.0.0 🐛 Issue present since 13.0.0
Projects
None yet
Development

No branches or pull requests

4 participants