How to Save Base64 Encoded File as a File Resource in Xano?

Answered

I’m working with a base64-encoded file (e.g., a .txt or .jpg) and want to create a file resource in Xano to store it as a public file.

Here’s what I’ve tried:

  1. I decode the base64 file using "Base64 Decode URL Safe," which works fine.

  2. When I use the decoded content in the "Create File Resource" action, it results in an empty file with no content.

However, if I set up headers like this and use the decoding action as the response, it downloads the correct file:

  • Content-Type: {file mimeType}

  • Content-Disposition: attachment; filename="{file name}"

What I Need:
I want to store the file as a Xano file resource without triggering a download, ensuring it’s saved properly with the correct content.

Has anyone encountered this issue? How can I configure this to make it work?

Thanks for your help!

1
2 replies