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
- 46 π£ Announcements
- 47 π¦Ύ Releases
- 36 π Welcome
- 924 π€· Help! I'm a Noob
- 113 π± No-Code Front-Ends
- 597 π Working with APIs
- 418 π’ Transforming data
- 120 π Connect Xano to ...
- 46 π§βπ» Find an Expert
- 320 βOther questions
- 32 π Security
- 22 βοΈ Snippets
- 19 π Showcase
- 7 π£οΈ ο»Ώ Xano Chatter
- 60 πΊ Video Tutorials
- 166 π Request a feature
- 219 π Report a Bug
- 19 π Templates & Extensions
- 6 π¬ Feedback