I’m using the SMTP New mail trigger to download an attachment (PDF) and upload it to my nextcloud instance (via WebDAV). For this, after the mail trigger, I use the HTTP request to download the attachment from the mail (response is binary is checked). Then I want to use that response to upload it to a WebDAV enabled API by using another http request. Body type is RAW and the body is the input from the HTTP request download.
The resulting PDF contains the base64 encoded response body. Things I tried:
- decode the http response from downloading the attachment via the decode base64 piece and use that as the input for the WebDAV request. This results in the actual PDF content but with abstract line break characters (\n and \r)
Any ideas?