Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
How to upload whole folder and every file inside using cypress?

I have something like that to take 1 file from the folder and just copy that 5 times. What should i do when i just want to upload everything in the location like 600 files? Can someone help me ? Maybe some loop ?

cy.fixture('DSC03431.JPG', 'base64').then((fileContent) => {
        cy.get('#chooseFilesInput').attachFile({
            fileContent: fileContent.toString(),
            fileName: 'DSC03431.JPG',
            mimeType: 'image/jpg',
            encoding: 'base64',

I want to upload contents of a folder to my application using cypress. I know I can mention the names of the files and cypress will pick them, but since I am not aware of the number of files in the folder or their names, how can I upload otherwise?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!