Skip to content

Add file upload support for TXT and EPUB books#5

Merged
snorcack merged 2 commits intosnorcack:mainfrom
stuttlepress:feature/file-upload
Apr 29, 2026
Merged

Add file upload support for TXT and EPUB books#5
snorcack merged 2 commits intosnorcack:mainfrom
stuttlepress:feature/file-upload

Conversation

@stuttlepress
Copy link
Copy Markdown
Contributor

Summary

Replaces the book file path text input with a file picker that accepts
.txt and unencrypted .epub files. The book name field auto-populates
from the filename but remains editable.

EPUB files are converted to plain text on the backend before indexing.

Changes

  • New POST /api/upload-book endpoint accepting multipart/form-data
  • EPUB to text conversion using ebooklib with simple HTML tag stripping
  • Add python-multipart and ebooklib to requirements.txt
  • Frontend BookLoader updated to use file input instead of path text box

@snorcack snorcack merged commit d058753 into snorcack:main Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants