Exporting a txt file?
I have an requirement that I must export data as a .txt file.
Is it possible to do this in Xano?
If it's not possible to do it natively in Xano, is there a workaround to export it?
Thanks
Answers
-
Hello @Rory,
Since it is a simple txt, the API on Xano can just return raw text, and your frontend can construct it into a .txt file. -
Yes, you can emit a plain text file from a xano endpoint. you can set the HTTP content-type header to "text/plain" using the function listed under the "utility" sub-menu. Then you just "return" the text by itself in the output - voila, you have a text file.
We've gotten Xano to emit all kinds of file types out of its API endpoints in our work together at State Change office hours and loom-enabled forums. It's one of those hardest 5% of edge cases that make one's app special!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback