Cypress-file-upload: xls and xlsx file support

Created on 20 Feb 2020  路  5Comments  路  Source: abramenal/cypress-file-upload

I am getting error when I am trying to upload excel file (not csv) with encoding as uft-8

Please look into docs to find supported "encoding" values

enhancement

All 5 comments

Hi @tkeswa
Thanks for submitting the issue!

Right now encoding does not get decided automatically which is definitely a thing to improve.
In the meantime, you still can pass encoding explicitly, see: https://github.com/abramenal/cypress-file-upload/issues/102

also see cypress-io/cypress#1594

@saschahofmann thanks for your code snippet! Going to make this work out of the box in upcoming major release

Hi @saschahofmann
It should be supported now out of the box. Please check out v4!

Cheers!

XLSX works like a charm. Not sure about XLS. Haven't dug deeper but there seems to be an issue.

Also the docs link here: https://github.com/abramenal/cypress-file-upload/blob/master/src/constants.js for the encodings.

Was this page helpful?
0 / 5 - 0 ratings