Distribute EPUB file via WordPress site
-
I’m already sick of WP’s god-awful AI “support.” Please ditch this time-wasting slop.
My real question is about how to distribute an EPUB file via my WP site. I’ve tried using the File block, but I get an error message that EPUB files cannot be uploaded. I want to make books I’ve written free to download from the site in EPUB format, rather than emailing files to individuals.
The blog I need help with is: (visible only to logged in users)
-
WordPress blocks
.epubuploads by default primarily for security reasons. Because EPUB files are essentially compressed ZIP archives containing HTML, CSS, and media, they can potentially harbor malicious scripts that execute on your website.The best way is to use a plugin – https://wordpress.org/plugins/tags/epub/
-
EPUB isn’t one of the default accepted file types on WordPress.com, which is why the File block is blocking the upload. But you can add EPUB support in a couple of minutes with a free plugin.
Here’s what to do:
- Go to WP Add Mime Types and install it on your site.
- Once activated, head to Settings > Media Type Settings in your dashboard.
- In the text box, add this line:
epub = application/epub+zip - Save your changes.
After that, go back to your post, add a File block, and upload your EPUB file. Your visitors will see a download link they can click to grab it.
If you happen to see a message saying plugins require a plan upgrade, that can occur on older plan purchases. In that case, just reach out to our support team through the Help Center and we’ll get it sorted for you.
As an alternative if you’d rather skip the plugin route, you could convert your EPUB files to PDF using a free tool like Calibre and upload them directly through the File block, since PDFs are supported by default.