I can’t preview attachments from my workflow UI, by clicking on the View button.
Once I’ve uploaded the file to Google Drive, I can’t preview it either.
If I try to download the file on macOS, it can’t be opened either (mentioned as corrupted by the Preview application).
However, when I download the file directly from the e-mail (in Thunderbird), it can be opened.
I’ve also noticed that the file sizes differ:
1 file downloaded from email is 522kb but 940kb in the workflow,
another is 304kb but 553kb in the workflow.
I’ve already checked and followed the solutions proposed in these threads, but the problem persists :
what file extension are you using? Is it the same as when you are downloading it via Thunderbird?
As far as I know, for example, Outlook on Windows saves messages in the .eml format, which is not compatible with MacOS (Outlook client on Mac downloads attachments as .msg files)
In the 2 files examples I mentionned, the first one is a .pdf and seem to be a type pdf in Google Drive and the second on is a .png and seem to be a type image in Google Drive.
I tried without the Code node and changed the “data” to “attachment_0” (without the quotes) in the Google Drive node but the issue persist.
I believed it might be related to the IMAP node itself as I can’t preview any file I’m trying to manipulate from the any of the workflow nodes. It show up like this when trying to preview the 2 examples mentioned in my first message:
Not sure it can give a clue or not but the mail concerned is hosted on a Cpanel webhost and when downloading the files directly from the email, everything can be opened properly.