Description
PNG files can't be downloaded using the .download() method. Possibly other files also have this problem. fsWriteSync throws an error that the file signature is invalid.
Steps to reproduce
- Save an img to a variable using context.exists()
- call .download on the variable; pass a file path as the first and only argument, saved as a PNG
Expected behavior
File downloaded correctly
Actual behavior
Invalid file signature error thrown; corrupt image file saved to filesystem
Description
PNG files can't be downloaded using the .download() method. Possibly other files also have this problem. fsWriteSync throws an error that the file signature is invalid.
Steps to reproduce
Expected behavior
File downloaded correctly
Actual behavior
Invalid file signature error thrown; corrupt image file saved to filesystem