Unable to use binary http response to create file via WebDAV

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?

Hello @LimitX , Welcome to the community :wave:,

We have ticket open for supporting file data as input in the HTTP piece. We’ll update you once it’s implemented.

1 Like