Limit Media Upload Size

4 Replies ·

  1. Is there a way to limit the upload size using a functions edit script?
    I want to have a max image upload size of 1mb.

    I’ve seen this plugin:

    But would prefer a functions edit if possible.

    Any thoughts on this?

  2. Justin Tadlock

    I suppose you could copy that plugin’s code into your theme’s `functions.php` file and change the paths around. I don’t know why you would though. This is the job of a plugin and should be handled in a plugin.

  3. Lab41

    I’m trying to reduce the load on my site and everything I’ve read says less plugins is better.

    Thanks. Will use plugin instead though here.

  4. Justin Tadlock

    The load on your site is going to be the same whether you add the code via a plugin or via a theme. The same code is the same code, no matter where it’s being loaded from.