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.

File upload limit issue

April 08, 2010 8:26am

Subscribe [7]
  • #1 / Apr 08, 2010 8:26am

    lithiumdave

    215 posts

    This question may be related to a resolved thread.

    Hi there,

    I normally develop EE sites on EngineHosting but for this one I’m having to use a different host. I’m seemingly unable to upload files above 2MB in size.

    I first noticed this problem while using the ‘link’ file upload facility in the Wygwam FieldFrame extension - before you suggest I take this up with Brandon, I have, he’s been super helpful and responsive but it seems it affects native file upload too.

    When I try to upload a file via Wygwam, I get a javascript dialogue box saying ‘Invalid file. The file size is too big.’ once upload hits 2MB.

    When I try to upload a file via native file upload, I get no error at all, the upload just ‘hangs’, nothing happens. I left it overnight just to make sure!

    Admin > Utilities > PHP Info reports ‘upload_max_filesize’ as 10M. I have a PHP.ini file both in root and the system folder with ‘upload_max_filesize = 10M’.

    I did try adding this value to .htaccess, as reported elsewhere on the forum, but I got a 500 server error page. My hosting company gave me this response:

    “Since the switch to suPHP all these php related values go into a php.ini file in your account, not the .htaccess”

    The hosting company are Clook in the UK, they’ve been very responsive and helpful but have drawn a blank.

    I’m now really stuck. Any help or ideas really appreciated.

    Many thanks.

    Dave

  • #2 / Apr 08, 2010 8:48am

    angstmann

    225 posts

    Hi Dave,

    Had similar issue after the changeover to suPHP on Clook. Was unable to upload files over 2MB. As you rightly say Clook support excellent in trying to help.

    For the particular site I had problems with, I changed the following values in the php.ini file that is in the web root of the hosting account:

    memory_limit=128M
    post_max_size=128M
    upload_max_filesize=100M

    That solved my problem immediately. Wonder if it isn’t just the upload_max_filesize thats causing your problems - you might wanna try and play with those other values.  Let me know how you get on.

  • #3 / Apr 08, 2010 9:08am

    lithiumdave

    215 posts

    Hi Richard,

    Thanks for the reply! I’ve tried adding those values to php.ini both in web root and in the system folder, but no joy, still get the error message :(

    However, PHP Info in the EE CP still says 10M as the limit, so something not quite right there?

    Aargh!

    Thanks for your help.

  • #4 / Apr 08, 2010 9:15am

    Sue Crocker

    26054 posts

    lithiumdave, did you restart the server?

  • #5 / Apr 08, 2010 9:35am

    lithiumdave

    215 posts

    Hi Sue - no I didn’t. I’m on shared hosting so I don’t have the means to do so unfortunately.

  • #6 / Apr 08, 2010 9:40am

    angstmann

    225 posts

    Sounds like its not seeing the new values for some reason. I had a problem once where some settings in my htaccess file meant that the site was using or pointing to a different version of PHP on the server. But if you just have the standard htaccess stuff, then cant see how that would conflict. 

    Whats in your htaccess file, just out of interest?

  • #7 / Apr 08, 2010 9:48am

    Sue Crocker

    26054 posts

    Thanks for the assist, Richard.

    This is more of an issue with a particular server, lithiumdave. They should be able to help you get past the problem.

  • #8 / Apr 08, 2010 9:54am

    lithiumdave

    215 posts

    Richard: just the standard output from LG .htaccess. However, I’ve tried removing everything from that file and it makes no difference.

    Sue: yes, I appreciate that. As I mentioned earlier, I’ve been several days now with my host who have bent over backwards to try everything they can think of.  EE’s CP PHP Info page now shows max file upload limit as 100M, yet still I’m hitting the error at 2MB. From their side they’ve done everything they possibly can. Their limitation is now their lack of knowledge of how EE works.

    So, now at a loss.

    Thanks all for your help, really appreciated. This issue isn’t resolved so if I do find a solution I’ll be sure to post it back here.

  • #9 / Apr 08, 2010 9:57am

    lithiumdave

    215 posts

    Though to be fair I really do not know what to try next!

  • #10 / Apr 08, 2010 10:05am

    Sue Crocker

    26054 posts

    What about attempting a smaller file, like about 3 megs in size?

  • #11 / Apr 08, 2010 10:07am

    lithiumdave

    215 posts

    The file I’m trying to upload is actually just 2.5MB, only slightly over the 2MB limit it hits.

  • #12 / Apr 08, 2010 4:35pm

    Ingmar

    29245 posts

    You haven’t set a limit in Admin > Weblog Administration > File Upload Preferences, have you? Are you on the latest build? Any other extensions?

  • #13 / Apr 08, 2010 7:31pm

    lithiumdave

    215 posts

    No, no limit set. Though I did try setting a ludicrously high limit there just to see if it fixed things.

    I’m on EE 1.6.8 build 20091201. Only other extension is FieldFrame.

  • #14 / Apr 08, 2010 9:47pm

    Brandon Jones

    5500 posts

    lithiumdave,

    Try adjusting this other value like Richard suggested:

    post_max_size=128M

    Making sure it “takes” by viewing phpinfo, of course. Keep us posted.  😉

  • #15 / Apr 09, 2010 5:22am

    lithiumdave

    215 posts

    Hi Brandon - yes, I did that yesterday and I can see that value, along with the others, in PHP Info within the EE CP. It’s definitely taken/stuck.

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

ExpressionEngine News!

#eecms, #events, #releases