Media uploads: changing the upper limit

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
fpoole
Posts: 3
Joined: Tue Mar 07, 2006 12:18 am
Contact:

Media uploads: changing the upper limit

Post 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!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Media uploads: changing the upper limit

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
fpoole
Posts: 3
Joined: Tue Mar 07, 2006 12:18 am
Contact:

Post by fpoole »

I'll give that a shot... should this be in the admin folder?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Serendipity has no admin folder, so you must add it to the usually existing .htaccess in the serendipity root folder.

Regards,Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
fpoole
Posts: 3
Joined: Tue Mar 07, 2006 12:18 am
Contact:

Post 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.
Post Reply