File modified by attachFile? #25935
-
I'm writing a test that uploads a known virus (the benign Eicar virus file: https://www.eicar.org/download-anti-malware-testfile/) in order to test our virus-scanning service. The issue is that after calling Is there any reason to suspect that attachFile would modify a file containing a virus? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To answer my own question, |
Beta Was this translation helpful? Give feedback.
To answer my own question,
attachFile
is a method from the cypress-file-upload package, and the encoding of the file had to be set manually to 'binary' in order for the file not to be mangled.