+ Reply to Thread
Results 1 to 7 of 7

Thread: Question about Ebooks

  1. #1
    RESimpson is offline Hello World
    Join Date
    Nov 2009
    Posts
    2

    Default Question about Ebooks

    I'm trying to put downloadable .epub files on my WordPress website and am having no luck.

    I've tried going through Media Library, but I get an error - File type does not meet security guidelines. Try another.

    I also would like to link the file to a cover.

    Can someone help me?

  2. #2
    Jeffro's Avatar
    Jeffro is offline WPTavern Forum Admin
    Join Date
    Jan 2009
    Location
    Ohio
    Posts
    2,107

    Default

    Perhaps putting the epub files into a zip file which is then uploaded would solve that problem unless you want people to open the files upon download.

    As for linking the file to a cover. I think you would want to link the cover image to the actual ebook file instead. That is easily doable by uploading the cover image and then editing the File URL to point to the corresponding ebook.

  3. #3
    RESimpson is offline Hello World
    Join Date
    Nov 2009
    Posts
    2

    Default

    Can you tell me why the type of file would be an issue? I would prefer that people be able to open files on download, but I guess it wouldn't be too big of a deal.

    Apparently I'm never quite as clear as I think I am when I pose questions. I did mean to link the file to the cover image. But I don't understand how to edit the file URL.

  4. #4
    ScottHack's Avatar
    ScottHack is offline Hello World
    Join Date
    Nov 2009
    Posts
    25

    Default Ftp

    What about FTPing the files onto the server?

  5. #5
    reLoadedThemes is offline Hello World
    Join Date
    Nov 2009
    Posts
    8

    Icon7

    Try to add this code into a plugin
    PHP Code:
    add_filter('upload_mimes''custom_upload_mimes');

    function 
    custom_upload_mimes $existing_mimes=array() )
    {
     
    // add your ext & mime to the array
    $existing_mimes['epub'] = 'mime/type';
     
    // add as many as you like
     
    // and return the new full result
    return $existing_mimes;

    Source - http://chrismeller.com/2007/07/modif...-in-wordpress/
    We reLoad™ Premium WordPress themes

  6. #6
    andrea_r's Avatar
    andrea_r is offline WPTavern Forum Moderator
    Join Date
    Jan 2009
    Location
    Eastern Canada
    Posts
    1,279

    Default

    <a href="http://yourfileuploaded">
    <img src="http://linktoimage.jpg" / >
    </a>

  7. #7
    windwriters is offline Hello World
    Join Date
    Feb 2010
    Posts
    4

    Icon14

    Hopefully this answer is not too late for RESimpson, or even for someone else who stumbles across this post.

    You might give a little WordPress Plugin called WordPress Mime Config a try. This plugin works for me on 2.9.1 You can find it here:

    http://blog.ftwr.co.uk/wordpress/mime-config/

    After you install the Plugin, you can take a look at a web page like the following to add your specific file types:

    http://www.feedforall.com/mime-types.htm

    Drop me a line if my suggestion works for you.

    WindWriters

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts