SOLVING PHP FILE UPLOAD SIZE ISSUES - Aug 6th, 2010


According to Dave Edis at Interactive Tools:

It could be that your host has a limit on the upload file size that’s lower than the one that you’ve set in your
Admin’s General Settings.

If so, can you click on "Show server upload limits" link below: Admin > General Settings > Upload Folder URL. Donna from
Interactive Tools reminds us that this functionality was implemented in version 1.19 (another reason to upgrade any
really old versions)

This should show you your web hosts limits. You can contact your host and ask them to allow for larger uploads. On some
servers it means uploading or changing values in a php.ini file (usually in your cgi-bin directory). On others it may
require working with .htaccess files. In any event, most reputable hosts will be happy to help you with this.

For (much) more information about your servers configuration, you can also get phpinfo details with this search added to
your admin.php URL


:
http://yourURL/yourcmsAdminfolder/admin.php?menu=admin&action=phpinfo




Or just download a phpinfo script and check these values:

file_uploads
max_input_time
post_max_size
upload_max_filesize

post_max_size limits how much data can be submitted through a form (forms use the method called "GET" or "POST" to
submit data). And upload_max_filesize limits the max size of an upload file itself.

They do seem to overlap a bit in functionality. That happens in PHP a fair bit. :) The key thing is to make sure they're
both large enough to allow your uploads.

Here are links to some PHP docs:

http://www.php.net/manual/en/ini.core.php#ini.post-max-size

http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize



The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service