Page 1 of 1

Media uploads: changing the upper limit

Posted: Tue Mar 07, 2006 12:23 am
by fpoole
Hello, all.

I've been using Serendipity for a couple of weeks now, and I've made tweaks to styles and such, but the uploader for the Media system is not allowing me to complete uploads of large MP3 files (which is necessary, as I share my own productions on my site), and I'm wondering if someone could help me hack this to work.

I know the problem isn't in the INI, as my close friend and colleague runs the server and I've edited the php.ini myself.

Any help would be vastly appreciated!

Re: Media uploads: changing the upper limit

Posted: Tue Mar 07, 2006 12:45 pm
by garvinhicking
The problem in this area is not Serendipity, but PHP.

The maximum upload limit is specified within the PHP configuration and cannot be changed by an application usually. So you need to talk to your provider to raise it.

If your Provider has allowed you to override PHP core settings, you can try setting this in your .htaccess file:

Code: Select all

php_value post_max_size 16M
php_value upload_max_filesize 16M
This might not work in all environments!

Regards,
Garvin

Posted: Tue Mar 07, 2006 1:20 pm
by fpoole
I'll give that a shot... should this be in the admin folder?

Posted: Tue Mar 07, 2006 1:30 pm
by garvinhicking
Serendipity has no admin folder, so you must add it to the usually existing .htaccess in the serendipity root folder.

Regards,Garvin

Posted: Tue Mar 07, 2006 11:09 pm
by fpoole
garvinhicking wrote:Serendipity has no admin folder, so you must add it to the usually existing .htaccess in the serendipity root folder.

Regards,Garvin
Okay, thanks. The original htaccess file got deleted because it was set up for my Linux development server and not the Windows server the site is hosted on. Thanks for the tip.