How do webapp mobile readers import local txt files?

recently, it is not very clear about the implementation of the function of importing local books into the bookshelf.
the specific process of this function is:
1. Click Import to read the file manager selected file (here limited to ePub eBook format file)
2. After import, the book is added to the shelf
3. Click on the imported book on the shelf to read (I have implemented the reading function)

the technologies currently used are:
front-end vue framework, background nodejs
interface h5css3 webapp

mainly because I don"t understand what information is saved on the shelf when importing. You can read the book the next time you click (and how to combine it with the function of saving reading progress)

I just hope someone can provide a general idea of how to implement it.


in the end, what you need to save must be the content, that is, the content of the imported file.
you can read the content when it is imported, save it, or transfer the file directly to the background, and read out the contents of the file in the background

.
Menu