• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

uploading PDFs and e-pub files

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › uploading PDFs and e-pub files

This topic is: not resolved

Tagged: E-Pub, PDF

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 12 months ago by Ipstenu.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 13, 2013 at 10:28 am #20083
    mark1mark
    Member

    Hi, I am Mark from Litesites, I am setting up a site for a customer who wants to sell a "Start your own pet sitting business guide, Uploading a PDF for download after payment has been a breeze, I have tried to upload an e-pub file so customers have the opportunity of reading it like an iBook on a mobile device but I have a failure to upload notice "for security reasons."

    Website is http://weloveourdogs.org

    anyone got a solution or idea about this?

    I appreciated any comment

    Mark

    February 17, 2013 at 11:33 am #20830
    Ipstenu
    Member

    You have to add it to your allowed mimes:


    add_filter('upload_mimes', 'add_custom_upload_mimes');
    function add_custom_upload_mimes($existing_mimes){
    $existing_mimes['epub'] = 'application/epub+zip'; //allow epub files
    return $existing_mimes;
    }

    I put it in an mu-plugin called sitewide-functions.php 🙂

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble