The community member is trying to build a form that can generate a file on their GitHub repository using the GitHub API, but the field needs to be base64-encoded. They are wondering if there is a Webstudio solution for this, or if they should use n8n instead. The comments suggest that while files are automatically encoded in forms by the browser, regular fields are not, and the community member would need to turn the text into a file. The community member mentions using DecapCMS as a headless CMS solution and providing a link to the relevant GitHub documentation.
Is it possible to encode the JSON body as base64 in a form?
I was trying to build a form that could generate a file on my GitHub repo using their API, but it seems like the field needs to be base64-encoded. (I could probably send this to n8n but I was wondering if there was a Webstudio solution)
This is an extension of this https://discord.com/channels/955905230107738152/955905231227609158/1320949577540571247. I forked the repo and was able to use DecapCMS as my headless solution. I then was trying to create a form in Webstudio that would allow me to create a new blog post. I was able to generate a new post in Insomnia (or Postman) with this way only if I used a Base64 version. I used AI to help me get that far.
fields are not a file, its just info, you would still need to turn that text into some kind of file, because essentially there is no logic that would do that