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 larger than limit in PHP Config file

April 26, 2011 9:51pm

Subscribe [4]
  • #1 / Apr 26, 2011 9:51pm

    Side Six

    37 posts

    Hi.  I’m setting up a site for a client and they want their members to be able to download a pdf newsletter file from an archives.  I’ve set up a channel for this, but when I go to upload the pdf document I get an error saying it’s too large for the limit set my php config file. Is that limit set in an expression engine 2.0 file or it that something in one of Media Temple’s files? 

    Thanks for your help!

    Dan

  • #2 / Apr 27, 2011 6:51am

    John Henry Donovan

    12339 posts

    Dan,

    It is a limit from your server and not EE

    Try overriding those values in a htaccess file

    php_value upload_max_filesize 20M
    php_value post_max_size 20M
    php_value max_execution_time 200
    php_value max_input_time 200
    php_value memory_limit 128M
  • #3 / Apr 27, 2011 1:55pm

    Side Six

    37 posts

    Thanks John!  Very helpful info.  If that doesn’t work I’ll ssh in and change the file on the server.

  • #4 / Apr 28, 2011 2:49pm

    Brandon Jones

    5500 posts

    Sounds good Dan. Sometimes the host won’t allow overrides for those, in which case you’ll need to contact them directly.

  • #5 / Apr 28, 2011 2:53pm

    Side Six

    37 posts

    Thanks, Brandon.  I might have to.  I double checked and the file I was trying to upload was only 4mb.  Seems like the limit should be higher than that.  I haven’t set any upload limits in the EE prefs on the page where we config uploads. Appreciate the help from you folks as always!

    Have Fun,

    Dan

  • #6 / Apr 29, 2011 4:27pm

    Brandon Jones

    5500 posts

    Hi Dan,

    In that case it could be a max_execution_time issue. Ideally that’d be set to 0 (no limit), if your host allows it. We’ll keep this thread open a bit longer for you just in case.

  • #7 / Apr 30, 2011 2:10am

    Side Six

    37 posts

    Hi Brandon,

    The problem was maddening because MT told me that a 4mg pdf file should upload fine.  Then late last night I was just surfing this forum reading posts and learning things and I happened across one that talked about the setting for XSS Filtering under Security and Sessions preferences.  That led me to a beautiful website called EEHow.  Very beautifully designed.  She had a screen shot on how to turn off XSS filtering. Turning that off fixed the problem.  My client is limiting access to the backend and uploading to herself and one associate.  So turning that off should be fairly safe once I explain what it means to them. Thanks for the response.  And close out this thread please.

    Dan

  • #8 / May 01, 2011 4:31pm

    Greg Salt

    3988 posts

    Hi Dan,

    Ah, okay. Thanks for the update and glad that you got this figured out.

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases