estarbooks
Sophomore
Just Getting Started
Member Likes (0)
Question A:
I found this post on how to change your settings so that you can upload epub files, without having to manually ftp them and directly link them, see: http://eschipul.com/2010/08/adding-ebook-epub-and-mobi-downloads-to-wordpress/
I tried adding the following code into my theme functions.php file from my dashboard area:
/*************************************
add epub mobi and lit files
/*************************************
function addUploadMimes($mimes) {
$mimes = array_merge($mimes, array(
'epub|mobi|lit' => 'application/octet-stream'
));
return $mimes;
}
add_filter('upload_mimes', 'addUploadMimes');
While the good news, is this did not break anything, bad news, it did not fix the problem either. Suggestions? Ideas?
Question B:
3 of my downloadable files exceed the max file size permitted for uploading, they are like 10mb. Is there a easy way increase the max uploadable file size? and if so how?
Thank you!
Amy

Responses (4)
Member (joined June 2011) Likes (0)
You're going to be limited to your servers configuration, if you have access to the system files, it will be a setting in PHP.ini for Apache
WPMU DEV Fanatic (joined October 2009) Likes (0)
Hi Amy,
I wonder if maybe the epub file issue is related to the file upload issue?
There's a link to an article regarding the file upload size in the link you posted, did you take a look into that? Normally you'd only need to add something like the following to your php.ini file:
upload_max_filesize = 32M
Cheers,
David
Member (joined July 2011) Likes (0)
The epub issue is not related to the file size upload issue, epub is not one of the "standard" formats that wordpress lets you upload, it gives you a security error.
I will check out my php.ini file and see if I can find the max upload area.
Thanks!
Amy
Member (joined July 2010) Likes (0)
Is there already a solution for this topic?
I have the same problem with the uploads, thought I have already adjusted the file size to fit the intended ePub files.
I have a MU network and not a single WordPress installation and have the suspicion that this is somehow the reason for the problem, as for others the solution provided in the link given by estarbooks seems to work.
Thank you for your help.
Best wishes,
Roswitha
Become a member