ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

upload_max_filesize = 60M and still uploaded file exceeds the maximum allowed size

February 14, 2012 2:45pm

Subscribe [3]
  • #1 / Feb 14, 2012 2:45pm

    Amanda

    54 posts

    Everything is working great on dev.

    Staging is the client’s server and we’re getting the “The uploaded file exceeds the maximum allowed size in your PHP configuration file.” error.  The video files are 10m to 18m in size.

    Staging upload_max_filesize was originally 6m but they’ve changed it to 60m (I can see that on phpinfo) and restarted the server (apparently).

    We’re still getting the message when trying to upload videos.  The server guy is trying to blame ee (which gets my back up).  I’m not a server person but need a better retort than “nuh-uh”.

    Any suggestions?
    Thanks
    Amanda

  • #2 / Feb 14, 2012 2:56pm

    Ian Young

    200 posts

    Hi Amanda,

    You’ll also need to change the ‘post_max_size’ directive. This usually defaults to 8MB but this may vary depending on your host.

    As an extra note, if you’re allowing large file uploads then you’ll probably also need to up the ‘max_input_time’ and ‘max_execution_time’ directives. Uploads will take longer so you’ll need to make sure they don’t time out. These are all located in your php.ini file.

  • #3 / Feb 14, 2012 3:07pm

    Amanda

    54 posts

    This all makes complete sense.  Have forwarded.
    Thanks!

  • #4 / Feb 14, 2012 3:10pm

    Ian Young

    200 posts

    No problem. Hope it helps to solve things. Holla back if you’re still having problems.

  • #5 / Feb 15, 2012 1:34pm

    Shane Eckert

    7174 posts

    Hello Amanda,

    I am glad Slippy was able to point you in the right direction.

    For future reference, these are the most common settings that come up when talking about PHP upload errors.

    memory_limit
    This sets the maximum amount of memory in bytes that a script is allowed to allocate.
    Default size 5.3 in is “8M”

    post_max_size (must be greater than upload_max_filesize)
    Sets max size of post data allowed. This setting also affects file upload.
    Default size in 5.3 is “128M”

    upload_max_filesize
    The maximum size of an uploaded file.

    max_execution_time
    This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser.
    Default setting in 5.3 is “30”

    Let us know how things go.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases