We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Mark Huot's File extension - File size limit problem

Development and Programming

Eric Snyder's avatar
Eric Snyder
202 posts
17 years ago
Eric Snyder's avatar Eric Snyder

I am attempting to use Mark’s file extension to upload audio files. I am expecting some of these to be big. I tested with a small file and it worked. I then tried a 6M file and it bombed - file exceeds what is allowed in php.ini.

I edited the php.ini file on the server and changed it to 20M and tried again. Still no luck. Changed the execution time to 120 seconds and still no luck. I have run phpinfo() to confirm that the values actually were changed - they were.

I changed the max file upload size in the file upload directory settings to something obnoxiously large - 33554432. Still no luck.

Any ideas?

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
17 years ago
Matt Weinberg's avatar Matt Weinberg

There are three php settings– memory_limit (may need to be bigger than twice your image size for the processing to work fully), max_execution_time (bigger files will take a long time to both upload and process), and upload_max_filesize (needs to be bigger than your file). Some hosts may also have a post_max_size that needs to be increased.

Can you try raising all of those to cover you? Make sure the execution time is long enough to cover the full amount of time uploading will take (not sure if this is a factor here, but best to be safe). Is it possible your host is placing hard limits on these that you can’t overwrite to be higher?

       
Jared Farrish's avatar
Jared Farrish
575 posts
17 years ago
Jared Farrish's avatar Jared Farrish

Do you get the same “File exceeds” error message with the bigger files? Or another error?

slapshotw has some good points, too.

I bet, if you’re the only one uploading, you might be better off just FTP’ing or doing a web-folder setup and hard-linking or manually installing the files into EE.

Don’t know if that’s an option, but thought I’d suggest it…

       
Eric Snyder's avatar
Eric Snyder
202 posts
17 years ago
Eric Snyder's avatar Eric Snyder

I am uploading a 6M file. memory_limit = 32M max_execution_time = 120 upload_max_filesize = 20M

Is it possible your host is placing hard limits on these that you can’t overwrite to be higher?

Hmmmmm…Good question. I’ll check into that.

I get the file exceeds the max size error. It is clearly before 120 seconds. FTP is a good suggestion but I am dealing with a very non computer savvy user here. The simpler the better.

By the way…I get the same message if I use the built in EE file upload as well. I’ll report back on the host idea, it’s a good thought.

       
Eric Snyder's avatar
Eric Snyder
202 posts
17 years ago
Eric Snyder's avatar Eric Snyder

The host created a new php.ini file. This seemed to fix the problem. Beyond that I do not know what they did.

       
kevincannon's avatar
kevincannon
22 posts
about 17 years ago
kevincannon's avatar kevincannon

In case anyone else has this problem, there’s another PHP variable you need to set too:

post_max_size

By default it’s set to 8 megabytes. I currently have a .htacess file with the following in it, to allow larger file uploads:

php_value upload_max_filesize 23M
php_value post_max_size 23M
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.