DEV Community

Bryan Liao
Bryan Liao

Posted on • Originally published at bryanliao.dev

Building in Public - 3

I wanted import and exporting files to be the main part of how to save/transfer data around in my app. Since I have previously learned how import works, it’s time to work on export.

I learned that exporting through the filesystem was only accessible by a server, so my client-only constraint would need a slightly different approach.

I found a workaround solution on StackOverflow that allowed for creating a downloadable text file link. It’s fairly simple to implement and reuses the concept of using Blobs to represent the data. Personally I think the harder part would be properly validating and parsing through the imported files, depending on how meticulous you want to be.

Top comments (0)